Skip to content

Commit

Permalink
add type definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
kaorun343 committed Jun 30, 2018
1 parent f595ae6 commit e158eae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/vue-youtube-embed.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Vue, { ComponentOptions, PluginObject } from 'vue'

export type Options = {
global?: boolean
componentId?: string
}

declare const index: PluginObject<Options>

export default index

export const YouTubePlayer: ComponentOptions<Vue>

export function getIdFromURL(url: string): string

export function getTimeFromURL(url: string): string
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"YouTube",
"youtube"
],
"typings": "./lib/vue-youtube-embed.d.ts",
"author": "kaorun343",
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit e158eae

Please sign in to comment.