These are chat archives for TypeStrong/atom-typescript

17th
Sep 2015
Basarat Ali Syed
@basarat
Sep 17 2015 00:45
@robyoder because its not supported in all browsers and very importantly (from ms perspective) IE : https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#Browser_compatibility
Rob Yoder
@robyoder
Sep 17 2015 04:14
Sure, but I should be able to check that and use it if it is supported. As it is, I just get an error. I can't redefine it either since it's already been declared. @basarat
Basarat Ali Syed
@basarat
Sep 17 2015 05:17
@robyoder you can amend it easily. Just add to the URL interface. See https://basarat.gitbooks.io/typescript/content/docs/types/lib.d.ts.html for examples :rose:
Rob Yoder
@robyoder
Sep 17 2015 05:26

Thanks. I've done that before, but I was getting mixed up with it earlier, overcomplicating things and it wasn't seeming to work. Just defining

interface URL {
    new(url: string): any;
}

is a good enough hack for now

kpgarrod
@kpgarrod
Sep 17 2015 07:13
I am having an issue since about 6.06 with 'go to declaration'. It takes me to the end of the file where the function is declared, not the declaration of the function itself. Anybody else?
Basarat Ali Syed
@basarat
Sep 17 2015 23:36
tested.gif
@kpgarrod ^ works fine here. Would need a repro from you if you are experiencing it still. Might be an edge case bug in TypeScript language service :rose: