Types declaration file for typescript
See original GitHub issueIn my app, when I do
import Loading from 'vue-loading-overlay';
I get the error:
Could not find a declaration file for module ‘vue-loading-overlay’. ‘/home/ayush/Desktop/currycoins/head-vue/node_modules/vue-loading-overlay/dist/vue-loading.min.js’ implicitly has an ‘any’ type.
Try
npm install @types/vue-loading-overlay
if it exists or add a new declaration (.d.ts) file containingdeclare module 'vue-loading-overlay';
I tried
npm i --save @types/vue-loading-overlay
but got the error:
npm ERR! code E404 npm ERR! 404 Not Found: @types/vue-loading-overlay@latest
npm ERR! A complete log of this run can be found in: npm ERR! /home/ayush/.npm/_logs/2018-03-08T03_30_04_370Z-debug.log
Any chance we can have a types declaration file?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Documentation - Introduction - TypeScript
The Declaration Files section is designed to teach you how to write a high-quality TypeScript Declaration File. We need to assume basic familiarity...
Read more >Documentation - Modules .d.ts - TypeScript
Testing your types · Create a new file in the root of your source tree: [libname].d.ts · Add declare module "[libname]" { }...
Read more >A quick introduction to “Type Declaration” files and adding ...
A Type Declaration or Type Definition file is a TypeScript file but with .d.ts filename extension. So what so special about these Type...
Read more >TypeScript — Type Declaration Files | by Makesh Kumar
Type declaration files are the files with d.ts extension, where types were declared via interface or type . These declaration files have no...
Read more >Writing Declaration Files for @types - TypeScript
Declaration files, if you're not familiar, are just files that describe the shape of an existing JavaScript codebase to TypeScript. By using ...
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 FreeTop 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
Top GitHub Comments
Nope, if you open a PR, i wont be able to review it, because i don’t even know the syntax. Typescript is completely new to me. Feel free to fork this repo, re-publish on npm and maintain it according to your needs.
I have no plans to learn or support type script. Sorry.