Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add TypeScript declaration file #49

Open
millermedeiros opened this issue Oct 18, 2012 · 5 comments
Open

add TypeScript declaration file #49

millermedeiros opened this issue Oct 18, 2012 · 5 comments

Comments

@millermedeiros
Copy link
Owner

I guess some people might want it: http://derekknox.com/daklab/2012/10/18/typescript-declaration-for-signal-js/

@millermedeiros
Copy link
Owner Author

should probably add it here: https://github.com/borisyankov/DefinitelyTyped

@millermedeiros
Copy link
Owner Author

I'm on a Mac and didn't had time to do it / test it yet...

there are 2 TypeScript ports already: https://github.com/photonstorm/typescript-signals and https://github.com/jonopus/typescript-signals

@stasberkov
Copy link

If I introduce typings https://www.npmjs.com/package/typings for signals will you accept pull request?

@JohnSword
Copy link

how do I use this with typescript?
I added the signals.min.js and the declaration file in VSCode, but when running the script in a browser I keep getting a ReferenceError: signals is not defined.

@JohnSword
Copy link

ok now it's working, I had to put this on the top of my ts file:
import signals = require("signals");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants