* Plain JS binder errors Issue select errors from the binder in JS files that do not have checkJS explicitly turned on or off. These errors mirror runtime checks done by Javascript. * Rest of plain JS binder errors * address PR comments * Only issue binder errors in plain JS. Checker errors require requesting diagnostics, which stll needs to be peformance tested. This commit removes one cross-file duplicate declaration error in the tests. * fix const lint
18 lines
723 B
Plaintext
18 lines
723 B
Plaintext
tests/cases/compiler/export.js(1,13): error TS2451: Cannot redeclare block-scoped variable 'foo'.
|
|
tests/cases/compiler/export.js(1,13): error TS8008: Type aliases can only be used in TypeScript files.
|
|
tests/cases/compiler/export.js(6,14): error TS2451: Cannot redeclare block-scoped variable 'foo'.
|
|
|
|
|
|
==== tests/cases/compiler/export.js (3 errors) ====
|
|
export type foo = 5;
|
|
~~~
|
|
!!! error TS2451: Cannot redeclare block-scoped variable 'foo'.
|
|
~~~
|
|
!!! error TS8008: Type aliases can only be used in TypeScript files.
|
|
/**
|
|
* @typedef {{
|
|
* }}
|
|
*/
|
|
export const foo = 5;
|
|
~~~
|
|
!!! error TS2451: Cannot redeclare block-scoped variable 'foo'. |