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 section on signals in typescript #960

Open
saolof opened this issue Jan 25, 2023 · 0 comments
Open

Add section on signals in typescript #960

saolof opened this issue Jan 25, 2023 · 0 comments

Comments

@saolof
Copy link

saolof commented Jan 25, 2023

The docs on typescript don't seem to mention signals, and it would be nice to know how to type them so that they take on a specific interface type. It's not too difficult to experiment a bit and eventually come up with the pattern of creating a const variable with the right type and using that to initialize the signal, but this should be documented.

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

No branches or pull requests

1 participant