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

TypeScript Definitions #10

Closed
vivekweb2013 opened this issue Jun 29, 2020 · 3 comments
Closed

TypeScript Definitions #10

vivekweb2013 opened this issue Jun 29, 2020 · 3 comments

Comments

@vivekweb2013
Copy link

With the import statement I get a warning in vscode saying

import tinydate from 'tinydate';

module "/Users/###/###/node_modules/tinydate/dist/tinydate"
Could not find a declaration file for module 'tinydate'. '/Users/###/###/node_modules/tinydate/dist/tinydate.js' implicitly has an 'any' type.
Try npm install @types/tinydate if it exists or add a new declaration (.d.ts) file containing declare module 'tinydate';ts(7016)

image

@lukeed
Copy link
Owner

lukeed commented Jun 29, 2020

It's because you're either using typescript or an editor with intellisense for typescript (eg, vscode). I can add type definitions

@lukeed lukeed changed the title Warning tinydate import in nodejs project TypeScript Definitions Jun 29, 2020
@vivekweb2013
Copy link
Author

Yes please add the type definition as this is the only warning shown in my well written project 😜

@lukeed lukeed closed this as completed in 417e983 Jun 29, 2020
@lukeed
Copy link
Owner

lukeed commented Jun 29, 2020

Available in 1.3.0 :)

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