Add types declaration file (#159)

This commit is contained in:
Liu Xinyu 2018-12-04 22:47:19 +08:00 committed by Rob Madole
parent 5403d5d424
commit 9cfd1aa4a4
2 changed files with 7 additions and 0 deletions

6
index.d.ts vendored Normal file
View File

@ -0,0 +1,6 @@
declare module '@fortawesome/vue-fontawesome' {
import { FunctionalComponentOptions } from 'vue'
export const FontAwesomeIcon: FunctionalComponentOptions
export const FontAwesomeLayers: FunctionalComponentOptions
export const FontAwesomeLayersText: FunctionalComponentOptions
}

View File

@ -5,6 +5,7 @@
"main": "index.js",
"module": "index.es.js",
"jsnext:main": "index.es.js",
"types": "index.d.ts",
"homepage": "https://github.com/FortAwesome/vue-fontawesome",
"repository": {
"type": "git",