You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: TS2741 [ERROR]: Property 'a' is missing in type '{}' but required in type '{ a: unknown; }'.
const aa: A = {};
~~
at file:///tmp/a.ts:9:7
'a' is declared here.
a: u.isOptionalOf(u.isUnknown),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
at file:///tmp/a.ts:4:3
Note
Same library version from npm passes type cheking.
dsherret
changed the title
Unexpected type checking fail with jsr
Unexpected type checking fail with jsr when mapped type has a named type
Jun 13, 2024
Version: Deno 1.42.1
To Reproduce
Save following code and execute
deno check a.ts
:Outputs following error:
Note
Same library version from npm passes type cheking.
The text was updated successfully, but these errors were encountered: