mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
Represent ordinary JavaScript arrays with hole, value, and explicit-undefined states; add sparse side storage and carry missing values through the frontend, native backends, runtime, and Node-facing consumers.
6 lines
458 B
Plaintext
6 lines
458 B
Plaintext
optional-fields.ts:12:38 - error SC1090: JSON.stringify of 'number | undefined' values (Node's stringify of bare undefined is not a string at all — narrow with '!== undefined' first, model absence with a null arm, or use an optional record field ('{ a?: string }'), which drops from the output like Node's) are not supported yet
|
|
|
|
11 | }
|
|
12 | const stringifyBare = JSON.stringify(mkMaybe());
|
|
| ^~~~~~~~~
|
|
13 | |