gluons / vue-github-buttons

:octocat: GitHub buttons component for Vue.
https://git.io/vue-github-buttons
Apache License 2.0
37 stars 10 forks source link

Typescript Compiler cannot find the .d.ts file of this package #96

Open wfjsw opened 2 years ago

wfjsw commented 2 years ago
TS7016: Could not find a declaration file for module 'vue-github-buttons'. 'node_modules/vue-github-buttons/dist/vue-github-buttons.cjs.js' implicitly has an 'any' type.   If the 'vue-github-buttons' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module 'vue-github-buttons';`

It seems the packages.json lacks a types entry which points to the .d.ts file. See also: https://www.tslang.cn/docs/handbook/declaration-files/publishing.html