Skip to content

Commit 65d48c0

Browse files
committed
Add clarifying comment
1 parent 67fff97 commit 65d48c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tests/json-stringify.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ doNotExecute(() => {
1111
});
1212

1313
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
1416
const result = JSON.stringify(undefined as any);
1517
type tests = [Expect<Equal<typeof result, string | undefined>>];
1618
});

0 commit comments

Comments
 (0)