小程序中引入插件,在TS文件中 使用requirePlugin 编译的时候报错
TS2304 Cannot find name 'requirePlugin'
不报错
简单的定一个接口
declare function requirePlugin<T>(name:string): T