* Add parsing * fix all api * check gramma of import call * Add more part of assertion * Add some case * Add baseline * use module insted of target * strip assertion in d.ts * Update new baseline * accept baseline * Revert error number changes * Update diagnostic message * Accept baseline * rename path * Fix cr issues * Accept baseline * Accept baseline * Error if assertion and typeonly import * Accept baseline * Make lint happy * Add some comment * Fix cr issues * Fix more issue * Incorporate PR feedback, fix module resolution for import() * Add contextual type and completions for ImportCall options argument Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
8 lines
515 B
Plaintext
8 lines
515 B
Plaintext
tests/cases/compiler/redefineArray.ts(1,1): error TS2741: Property 'isArray' is missing in type '<T>(n: number, s: string) => number' but required in type 'ArrayConstructor'.
|
|
|
|
|
|
==== tests/cases/compiler/redefineArray.ts (1 errors) ====
|
|
Array = function (n:number, s:string) {return n;};
|
|
~~~~~
|
|
!!! error TS2741: Property 'isArray' is missing in type '<T>(n: number, s: string) => number' but required in type 'ArrayConstructor'.
|
|
!!! related TS2728 /.ts/lib.es5.d.ts:1460:5: 'isArray' is declared here. |