File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 * [ Install package] ( #install-package )
2323 * [ Import and use] ( #import-and-use )
2424 * [ Notes] ( #notes )
25- * [ Sheets type inference constraint / limitation] ( #sheets-type-inference-constraint --limitation )
25+ * [ Sheets type inference constraining / limitation] ( #sheets-type-inference-constraining --limitation )
2626 * [ Fork notice and credit] ( #fork-notice-and-credit )
2727 * [ License] ( #license )
2828
@@ -96,7 +96,7 @@ browserDownloadFile(new File([ssData], 'fileName.ext'))
9696
9797## Notes
9898
99- ### Sheets type inference constraint / limitation
99+ ### Sheets type inference constraining / limitation
100100
101101If you use multiple sheets, or you want to constraint the type of the sheet, follow this example:
102102``` ts
@@ -113,7 +113,8 @@ const workbook = constructWorkbook<any>(
113113 [' What' , ' what' ],
114114 ],
115115 }),
116- defineJsonSheet ({
116+ // Constrain the type of the sheet to `string` content
117+ defineJsonSheet <string >({
117118 sheet: ' Sheet2' ,
118119 content: [
119120 ' {"encoded":"sample"}' ,
You can’t perform that action at this time.
0 commit comments