We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1417c1b commit bb6a4feCopy full SHA for bb6a4fe
test-dts/core-base/runtime.test-d.ts
@@ -39,6 +39,7 @@ expectType<string>('' as MessageType<''>) // string literal
39
expectType<number>(1 as MessageType<number>) // number type
40
expectType<1>(1 as MessageType<1>) // number literal
41
expectType<Date>(new Date() as MessageType<Date>) // Date
42
+// TODO:
43
// expectType<object>(Object.create(null) as MessageType<object>) // Object type
44
expectType<{ toString: () => '' }>(
45
Object.create({ toString: () => '' }) as MessageType<{ toString: () => '' }>
0 commit comments