Seriously.js icon indicating copy to clipboard operation
Seriously.js copied to clipboard

Typescript & DefinitelyTyped

Open z639 opened this issue 8 years ago • 2 comments

Hiya,

Is anyone out there working on getting this project a declaration file to add to DefinitelyTyped ( https://github.com/DefinitelyTyped/DefinitelyTyped ) for working with it in typescript ?

Thanks.

z639 avatar Feb 28 '17 15:02 z639

You can add to it in Typescript adding this reference at the top your file:

import '../../../libraries/seriouslyjs/seriously.js';
declare var Seriously: any;

utiq avatar Apr 20 '17 15:04 utiq

@utiq True, but that is true of any JavaScript library.

Maybe I worded my post wrong, When I said working with it in TypeScript, I meant having the advantages of type definition.. IntelliSense and such.

That said, I'm sure pointing this out will help others.

z639 avatar May 04 '17 13:05 z639