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
typePoint={[key: string]: number};functionprocessPoints(points: Point[]): string[]{// Should error on Object.keys(number), TS2345: Argument of type 'number' is not assignable to parameter of type 'object'.returnObject.keys(points[3].foo);}
deno check reports no errors.
But TSC says:
> deno run -ER npm:typescript@5.7.3/tsc --noEmit foo.ts
foo.ts:10:24 - error TS2345: Argument of type 'number' is not assignable to parameter of type 'object'.
10 return Object.keys(points[3].foo);
~~~~~~~~~~~~~
Found 1 error in foo.ts:10
The text was updated successfully, but these errors were encountered:
Version:
Originally reported on Discord
deno check
reports no errors.But TSC says:
The text was updated successfully, but these errors were encountered: