vite vue3 ts中引入js模块

1,888 阅读1分钟

简单直接

在ts文件中引入第三方js模块包,但是有没有ts声明文件

ts type查询地址

TypeScript: Search for typed packages (typescriptlang.org)

const xxxxxxx:any = require('xxxxxxx')