Open mmkal opened 9 months ago
The following seems like it passes when using tsc or in an IDE, when it (correctly) fails running tsd via CLI:
tsc
tsd
import { expectType } from 'tsd' expectType<number | null>(1)
playground (strict mode enabled)
Given the docs say:
Asserts that the type of expression is identical to type T.
expression
T
for expectType<T>(expression), this seems confusing. This behaves as expected in expect-type (playground)
expectType<T>(expression)
The following seems like it passes when using
tsc
or in an IDE, when it (correctly) fails runningtsd
via CLI:playground (strict mode enabled)
Given the docs say:
for
expectType<T>(expression)
, this seems confusing. This behaves as expected in expect-type (playground)