These are chat archives for TypeStrong/atom-typescript

16th
Sep 2015
hellboy81
@hellboy81
Sep 16 2015 06:42
Is there possible to use https://github.com/borisyankov/DefinitelyTyped as helper for intellisense if I am coding only JS?
Basarat Ali Syed
@basarat
Sep 16 2015 06:45
@hellboy81 its been requested before : TypeStrong/atom-typescript#315 but not supported yet.
I'm keeping an eye on the TypeScript code to see if it officially becomes any easier : Microsoft/TypeScript#4094 / Microsoft/TypeScript#4789 :rose:
Rob Yoder
@robyoder
Sep 16 2015 23:37
Anyone know what's up with the URL definition in lib.d.ts? I'm getting Cannot use 'new' with an expression whose type lacks a call or construct signature. when trying to run new URL('https://example.com') which should be perfectly valid
interface URL {
    createObjectURL(object: any, options?: ObjectURLOptions): string;
    revokeObjectURL(url: string): void;
}
declare var URL: URL;
Not sure why URL is defined this way. Anyone else?