We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67fff97 commit 65d48c0Copy full SHA for 65d48c0
src/tests/json-stringify.ts
@@ -11,6 +11,8 @@ doNotExecute(() => {
11
});
12
13
doNotExecute(() => {
14
+ // If the type of the incoming value is `any` we can't assume anything about
15
+ // it so return the broadest possible type
16
const result = JSON.stringify(undefined as any);
17
type tests = [Expect<Equal<typeof result, string | undefined>>];
18
0 commit comments