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

.d.ts fix #21

Closed
tripodsgames opened this issue Aug 16, 2020 · 5 comments
Closed

.d.ts fix #21

tripodsgames opened this issue Aug 16, 2020 · 5 comments

Comments

@tripodsgames
Copy link
Contributor

I use strict typescript.
When I use klona/full I get the following error:
Could not find a declaration file for module 'klona/full'. 'node_modules/klona/full/index.js' implicitly has an 'any' type. Try `npm install @types/klona` if it exists or add a new declaration (.d.ts) file containing `declare module 'klona/full';`

I fixed it by creating a custom definition file, but it would be nice if it was already defined.

declare module 'klona/full' {
    export function klona<T>(input: T): T;
}
@lukeed
Copy link
Owner

lukeed commented Aug 16, 2020

Ah thanks, I thought it would share the same types file but I guess not. Will fix soon!

@tripodsgames
Copy link
Contributor Author

Ah thanks, I thought it would share the same types file but I guess not. Will fix soon!

if possible, fix this on dequal/lite too, I use your libraries a lot xD

@lukeed
Copy link
Owner

lukeed commented Aug 17, 2020

Definitely! Your issue made me think of a few I need to double-check :D

Appreciate it 🙇

@lukeed lukeed closed this as completed in 107e22f Aug 17, 2020
@lukeed
Copy link
Owner

lukeed commented Aug 17, 2020

Fixed in v2.0.2

lukeed added a commit to lukeed/dequal that referenced this issue Aug 17, 2020
@lukeed
Copy link
Owner

lukeed commented Aug 17, 2020

And dequal@2.0.1

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

2 participants