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

Provide Types for Typescript useage #7

Open
wuda-io opened this issue Nov 22, 2023 · 2 comments
Open

Provide Types for Typescript useage #7

wuda-io opened this issue Nov 22, 2023 · 2 comments

Comments

@wuda-io
Copy link

wuda-io commented Nov 22, 2023

Hello @awwright
This Module is awesome and it directly worked for my requirements.
The only issue i have is, that i import it with Typescript and I got an Notice that there are no Type Definitions.
Do you plan to add them in future?
Thanks for your efforts.

@wuda-io
Copy link
Author

wuda-io commented Nov 22, 2023

Could not find a declaration file for module 'uri-template-router'. '..../node_modules/uri-template-router/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/uri-template-router if it exists or add a new declaration (.d.ts) file containing declare module 'uri-template-router';

@wuda-io
Copy link
Author

wuda-io commented Nov 22, 2023

Okay I got a workaround by creating a file called uri-template-router.d.ts in my project dir.
inside the file you have to write declare module "uri-template-router";

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