These are chat archives for TypeStrong/atom-typescript

9th
Feb 2016
Basarat Ali Syed
@basarat
Feb 09 2016 04:00
@gorateron use tsconfig.json :rose:
kpgarrod
@kpgarrod
Feb 09 2016 06:57

why does this code give an error:

var count = markers.length;
var dv = count;
while (dv !== 0) {
dv = parseInt(dv/10, 10);
index++;
}

Argument of type 'number' is not assignable to parameter of type 'string'.at line 3 col 19 ???
David Driscoll
@david-driscoll
Feb 09 2016 12:13
@kpgarrod parseInt expects a string, not a number.