Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFuks committed Jun 20, 2024
1 parent b1a779c commit 36946d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/example/src/legacy/getDate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ok with strict: false
export const getDate = (date) => {
const modern: string | undefined = undefined;

Expand All @@ -11,4 +12,5 @@ export const getDate = (date) => {
});
}

// show `string` on hover in IDE
export const someVar: string | undefined = undefined;

0 comments on commit 36946d4

Please sign in to comment.