Skip to content

Commit

Permalink
fix sheetjs type bug. (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
dojyorin authored Jan 31, 2024
1 parent 96d8d6a commit 394470a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Simplify processing for Deno.
# Details
Pack frequently used binary, text and WebAPI processing into one function.

For example, provide BASE64, Deflate, WebCrypto, WebWorker and `fetch` in easier-to-use format.
For example provide BASE64, Deflate, WebCrypto, WebWorker and Fetch in easier-to-use format.

### Minipack
"Minipack" is file archive format unique to this module.
Expand Down
6 changes: 3 additions & 3 deletions src/pure_ext/excel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ export function excelDecode(data:Uint8Array, cp?:number, pw?:string):Record<stri
for(const [name, sheet] of Object.entries(Sheets)){
const rows:string[][] = [];

for(const row of sheet["!data"] ?? []){
for(const row of <(RawWorkCell[] | undefined)[]>sheet["!data"] ?? []){
const columns:string[] = [];

for(const {t, w} of row){
columns.push(t === "e" ? "" : w ?? "");
for(const column of <(RawWorkCell | undefined)[]>row ?? []){
columns.push(!column || column.t === "e" ? "" : column.w ?? "");
}

rows.push(columns);
Expand Down

0 comments on commit 394470a

Please sign in to comment.