8000 add test · abrahamguo/typescript-eslint@47050cb · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 47050cb

Browse files
committed
add test
1 parent 0d0e907 commit 47050cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/eslint-plugin/tests/rules/no-unsafe-return.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ function foo(): Set<number> {
127127
return [] as any[];
128128
}
129129
`,
130+
'const foo: (() => void) | undefined = () => 1;',
130131
],
131132
invalid: [
132133
{

0 commit comments

Comments
0 (0)
0