-
Notifications
You must be signed in to change notification settings - Fork 56
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
Typescript definition file #107
Comments
Hey Juan, I think I didn't understand well what's your problem on creating the d.ts file, maybe because I don't use typescript myself. When you do a
I suppose this polymorphic behavior, is a pain for creating a typescript declaration. Isn't it? |
@Juancoll Did you guys ever get to finish the bindings? Would love to use them myself. |
I think it never got done. I don't use typescript so I don't plan to add it, but if someone wants to create a PR I'd be glad to merge it. |
@arqex still not using ts? :D |
Hey there!
Lately we worked a lot with Typescript and React and we have noticed that nobody has yet made a declaration file for typescript on FreezerJS. We have tried to create a d.ts file ourselves for our project, but we have noticed that all fields of the state can access the functions of the listener, so we can't declare the state as 'any' type.
Here's our code for d.ts file:
Is there any way to type the library by ourselvers or are we just squealing because it's impossible?
Thanks a lot to everybody!
The text was updated successfully, but these errors were encountered: