brianchirls / Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL
MIT License
3.87k stars 354 forks source link

Typescript & DefinitelyTyped #147

Open z639 opened 7 years ago

z639 commented 7 years ago

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.

utiq commented 7 years ago

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

import '../../../libraries/seriouslyjs/seriously.js';
declare var Seriously: any;
z639 commented 7 years ago

@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.