<input id="upload" type=file onchange="handleFileSelect(event)">
<script src="https://unpkg.com/xlsx/dist/xlsx.full.min.js"></script>
<script>
function handleFileSelect(e) {
let reader = new FileReader();
reader.readAsBinaryString(e.target.files[0]);
reader.onload = function () {
WebSocket.send(reader.result);
let workbook = XLSX.read(reader.result, {
type: 'binary'
});
workbook.SheetNames.forEach(function (sheetName) {
let parsedRows = XLSX.utils.sheet_to_row_object_array(workbook.Sheets[sheetName]);
console.log(parsedRows);
})
};
}
</script>
/**
* Summarize the list of existing assets
* e. g. creating an assets manifest of Service Workers.
*/
static PROCESS_ASSETS_STAGE_SUMMARIZE: number;
Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE = 1000;
но это js файл и я не знаю как из него унаследовать значения в свой .d.ts