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
$ deno check denobug-overloads.ts
Check file:///home/dandv/deno/denobug-overloads.ts
error: TS2769 [ERROR]: No overload matches this call.
Overload 1 of 3, '(s: string, b: boolean): void', gave the following error.
Argument of type 'number' is not assignable to parameter of type 'boolean'. Overload 2 of 3, '(ss: string[], b: boolean): void', gave the following error.
Argument of type 'string' is not assignable to parameter of type 'string[]'. Overload 3 of 3, '(ss: string[], b: Date): void', gave the following error.
Argument of type 'string' is not assignable to parameter of type 'string[]'.
foo('hello', 42);
~~~
at file:///home/dandv/deno/denobug-overloads.ts:7:1
The sentences "Overload [23] of 3..." would be more readable if they started on their own lines, indented with 2 spaces.
The text was updated successfully, but these errors were encountered:
Version: Deno 2.1.4
Running
deno check
on the script below produces an error that could be made a bit more readable:The sentences "Overload [23] of 3..." would be more readable if they started on their own lines, indented with 2 spaces.
The text was updated successfully, but these errors were encountered: