Skip to content

Commit

Permalink
fix(types): incorrect work with config strict: true
Browse files Browse the repository at this point in the history
When using the config strict: true, typescript cannot build vue-cool-select.
Added very basic typings to prevent that.

Re #315
  • Loading branch information
iliyaZelenko committed Feb 4, 2020
2 parents 081a676 + 6976f93 commit 0f1d2f8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export const CoolSelect: Component
export const VueCoolSelect: Component
export const CoolSelectPlugin: PluginFunction<CoolSelectUseOptionsInterface>
export const EventEmitter: {
on: (event, listener) => any
onOnce: (event, listener) => any
emit: (event, data) => any
on: (event: any, listener: any) => any
onOnce: (event: any, listener: any) => any
emit: (event: any, data: any) => any
}

export interface CoolSelectUseOptionsInterface {
Expand Down Expand Up @@ -38,14 +38,14 @@ export interface VueCoolSelectComponentInterface extends Vue {
itemsComputed: any[]

/* Methods */
onSelectByArrow (e)
onEnter (e)
onClick ()
onClickSelectItem (item)
onSearchKeyDown (e)
onSearchKeyUp (e)
onSearch (e)
onScroll (event)
onSelectByArrow (e: any): any
onEnter (e: any): any
onClick (): any
onClickSelectItem (item: any): any
onSearchKeyDown (e: any): any
onSearchKeyUp (e: any): any
onSearch (e: any): any
onScroll (event: any): any

setBlured ()
setBlured (): any
}

0 comments on commit 0f1d2f8

Please sign in to comment.