Skip to content

Commit 719c95c

Browse files
committed
chore: add typings
1 parent 8f14e54 commit 719c95c

File tree

3 files changed

+100
-77
lines changed

3 files changed

+100
-77
lines changed

index.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Vue from 'vue'
2+
3+
export declare class CIcon extends Vue {
4+
name: string
5+
content: [string, Array<string>]
6+
size: string
7+
customClasses: [string, Array<any>, object]
8+
}
9+
10+
import { PluginFunction } from 'vue'
11+
export interface CIconPluginPlugin {
12+
install: PluginFunction<Function>
13+
}
14+
export declare const CIconPlugin: CIconPluginPlugin

package-lock.json

Lines changed: 82 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
"sideEffects": false,
44
"version": "1.0.0-alpha.1",
55
"main": "dist/coreui-icons-vue.common.js",
6+
"types": "index.d.ts",
67
"scripts": {
78
"build": "vue-cli-service build --target lib --name coreui-icons-vue ./index.js",
89
"lint": "vue-cli-service lint"
910
},
11+
"dependencies": {
12+
"vue": "^2.6.10"
13+
},
1014
"devDependencies": {
1115
"@vue/cli-plugin-babel": "^3.8.0",
1216
"@vue/cli-plugin-eslint": "^3.8.0",

0 commit comments

Comments
 (0)