Skip to content

Commit

Permalink
TW: document JSONSerializable edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Feb 1, 2025
1 parent 903bcbf commit 763e88d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion types/scratch-vm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ declare namespace VM {
serializeAssets(): ScratchStorage.Asset[];
deserialize(json: unknown, zip?: JSZip, keepExisting?: boolean): Promise<void>;
}
// https://github.com/microsoft/TypeScript/pull/33050#issue-484549713
/**
* Note that behavior of Infinity, -Infinity, and NaN is undefined.
* Implementation based on https://github.com/microsoft/TypeScript/pull/33050#issue-484549713
*/
type JSONSerializable = string | number | boolean | null | JSONSerializable[] | { [key: string]: JSONSerializable };
/**
* Maps extension ID to arbitrary data storage.
Expand Down

0 comments on commit 763e88d

Please sign in to comment.