Skip to content

Commit 47fa67f

Browse files
committed
Add typescript type tests for after
1 parent 852f9be commit 47fa67f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/types/after.test-d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import {expectType} from 'tsd';
2+
3+
import * as fl from '../../index.js';
4+
5+
expectType<fl.Resolved<number>> (fl.after (1) (42));
6+
expectType<fl.Resolved<string>> (fl.after (1) ('a'));
7+
8+
// https://github.com/microsoft/TypeScript/issues/32277
9+
// expectType<fl.Never> (fl.after (Infinity) ('Finally!'));

0 commit comments

Comments
 (0)