mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
401 B
Plaintext
12 lines
401 B
Plaintext
genericFunctions2.ts(4,19): error TS2454: Variable 'myItems' is used before being assigned.
|
|
|
|
|
|
==== genericFunctions2.ts (1 errors) ====
|
|
declare function map <T, U > (items: T[], f: (x: T) => U): U[];
|
|
|
|
var myItems: string[];
|
|
var lengths = map(myItems, x => x.length);
|
|
~~~~~~~
|
|
!!! error TS2454: Variable 'myItems' is used before being assigned.
|
|
|
|
|