recoil-sync and types
See original GitHub issueHi,
When using recoil-sync with typescript I get
Could not find a declaration file for module 'recoil-sync'.
Is there a config setting I’m missing?
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Recoil Sync Library
The recoil-sync NPM package provides an add-on library to help synchronize Recoil state with external systems. Simple asynchronous data queries can be ...
Read more >recoil-sync - npm
recoil -sync provides an add-on library to help synchronize Recoil state with external systems. Latest version: 0.2.0, last published: 2 ...
Read more >recoil-sync - NPM Package Overview - Socket.dev
recoil -sync provides an add-on library to help synchronize Recoil state with external systems. Version: 0.2.0 was published by drarmstr.
Read more >Recoil (@recoiljs) / Twitter
The recoil-sync NPM package provides an add-on library to help synchronize Recoil state with external systems. Simple asynchronous data queries can be ...
Read more >Recoil: the Future of State Management for React? - Syncfusion
Recoil has two key concepts: Atoms; Selectors. Syncfusion React UI components are the developers' ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mondaychen Thanks for the release!
As for the typing issue, I created my own
.d.ts
file:And now I can use the URL sync functionality without relying on my own builds, yay! 😃
Well, to correctly set up types (without publishing refine as its own package) is more complicated than I expected. I’ve published
0.0.1-alpha.2
for recoil-sync anyways since not many people are using it. You can doimport {refine} from 'recoil-sync'
now. It should work (e.g.refine.assertion
will throw if types don’t match), but I expect typing (for both typescript and flow) to be missing or buggy for now.