forked from sheetjs/sheetjs
This changes some type definitions so that sheetjs accepts readonly arrays in places where it's not mutating the array anyway. For example, without this change, the following code would not compile: ``` const myData: ReadonlyArray<{ col1: string, col2: string}> = [{ col1: 'a', col2: 'b' }]; const myWorksheet = utils. json_to_sheet(myData); ``` This theoretically should work - sheetjs isn't mutating the myData array anyway, so it should accept a readonly array as input. Signed-off-by: Sweater-Baron <sweater-baron@noreply.git.sheetjs.com> |
||
---|---|---|
.. | ||
dist | ||
misc | ||
src | ||
tsconfig | ||
.gitignore | ||
.npmignore | ||
esm.mjs | ||
index.js | ||
LICENSE | ||
Makefile | ||
package.json | ||
README.md | ||
test.ts | ||
tsconfig.base.json | ||
tsconfig.json | ||
tsconfig.vscode.json |
s
TypeScript/JavaScript wrapper closely aligned with the OfficeJS Excel API in the MIT-licensed https://github.com/OfficeDev/office-js-docs-reference
The 1.x.x
releases should not be treated as stable. 0.x.x
releases serve to
preserve the original use of the S
module.
License
Please consult the attached LICENSE file for details. All rights not explicitly granted by the Apache 2.0 License are reserved by the Original Author.