mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
561 B
Plaintext
21 lines
561 B
Plaintext
input.ts(2,6): error TS2339: Property '0' does not exist on type 'string[]'.
|
|
|
|
|
|
==== globals.ts (0 errors) ====
|
|
interface Array<T> {}
|
|
interface Boolean {}
|
|
interface Function {}
|
|
interface CallableFunction {}
|
|
interface NewableFunction {}
|
|
interface IArguments {}
|
|
interface Number {}
|
|
interface Object {}
|
|
interface RegExp {}
|
|
interface String {}
|
|
|
|
==== input.ts (1 errors) ====
|
|
declare var x: string[];
|
|
var [a] = x;
|
|
~
|
|
!!! error TS2339: Property '0' does not exist on type 'string[]'.
|
|
|