These are chat archives for DefinitelyTyped/DefinitelyTyped

19th
Jun 2016
Cole R Lawrence
@colelawrence
Jun 19 2016 02:32
@basarat Thank you
Daniel Rosenwasser
@DanielRosenwasser
Jun 19 2016 03:42
@fdnhkj what is the type of the globalObj?
Better yet, what library is this?
Fidan Hakaj
@fdnhkj
Jun 19 2016 06:46
@DanielRosenwasser It is an object which contains 3 enums (built with dictionaries) and some functions. Library is called intl-tel-input. See lines 153, 171, 172, 173 https://github.com/jackocnr/intl-tel-input/blob/master/src/js/utils.js#L153
I did it like this (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/intl-tel-input/intl-tel-input.d.ts#L133). However, I am wondering if there is a better way :)