ts-reset icon indicating copy to clipboard operation
ts-reset copied to clipboard

Correct types for JSON.stringify

Open chribjel opened this issue 1 year ago • 16 comments

JSON.stringify has some caveats that is not in the standard Typescript implementation.

JSON.stringify(undefined) returns undefined, not string JSON.stringify(function(){}) returns undefined as well.

This PR fixes that.

chribjel avatar Mar 07 '24 11:03 chribjel

Tightly related: #21, #124.

denis-sokolov avatar Apr 12 '24 00:04 denis-sokolov