dishait / pinia-plugin-unistorage

uniapp 下 pinia 的本地数据缓存插件
MIT License
19 stars 2 forks source link

缺少.d.ts声明文件,可以整合到包里面 #3

Closed Rain-Hsiang closed 1 year ago

Rain-Hsiang commented 1 year ago

无法找到模块“pinia-plugin-unistorage”的声明文件。“/Users/rain/Desktop/my-vue3-project/node_modules/.pnpm/pinia-plugin-unistorage@0.0.8/node_modules/pinia-plugin-unistorage/dist/index.js”隐式拥有 "any" 类型。

解决:
尝试使用 npm i --save-dev @types/pinia-plugin-unistorage (如果存在), 或者添加一个包含 declare module 'pinia-plugin-unistorage'; 的新声明(.d.ts)文件

markthree commented 1 year ago

@Rain-Hsiang 靓仔你好,欢迎 PR

Rain-Hsiang commented 1 year ago

@Rain-Hsiang 靓仔你好,欢迎 PR

小白一个,ts都写不利索,比如uniapp,标签:style属性要放【obj】都不知道怎么写ts,最后还是{...obj}。痛苦,求大佬指导

markthree commented 1 year ago

@Rain-Hsiang 靓仔你好,已经支持,可以下载最新的 npm 包。

具体更改可见 👉 chore: add dts