sheetjs/packages/s
Sweater-Baron 202cac81c0 Accept readonly array inputs
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>
2025-03-26 18:49:46 +00:00
..
dist initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
misc fixed flow typecheck 2019-10-31 23:09:14 -04:00
src Accept readonly array inputs 2025-03-26 18:49:46 +00:00
tsconfig initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
.gitignore initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
.npmignore initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
esm.mjs initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
index.js initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
LICENSE initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
Makefile initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
package.json initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
README.md initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
test.ts initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
tsconfig.base.json initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
tsconfig.json initial release of S [ci skip] 2019-09-04 02:27:03 -04:00
tsconfig.vscode.json initial release of S [ci skip] 2019-09-04 02:27:03 -04:00

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.