Skip to content

Commit 541c18a

Browse files
committed
chore: 增加ts声明文件
1 parent b6f3662 commit 541c18a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"element-ui form",
3131
"el-form"
3232
],
33+
"types": "./types/index.d.ts",
3334
"dependencies": {
3435
"dayjs": "^1.8.15",
3536
"is-number": "^7.0.0",

types/index.d.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
declare module 'vue-ele-form' {
2+
import Vue, { PluginFunction, PluginObject } from 'vue';
3+
class EleForm implements PluginObject<{}> {
4+
[key: string]: any;
5+
public install: PluginFunction<{}>;
6+
}
7+
8+
const VuePlugin: EleForm;
9+
10+
export default VuePlugin;
11+
}

0 commit comments

Comments
 (0)