Skip to content

Commit

Permalink
Merge pull request #113 from fivetide/feature/typescript-definitions
Browse files Browse the repository at this point in the history
add typescript definitions
  • Loading branch information
shershen08 authored Nov 29, 2021
2 parents 94a5f90 + 3e1f712 commit acf9add
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module 'vue-masonry' {
import Vue, { PluginFunction } from 'vue';
export class VueMasonryPlugin {
static install: PluginFunction<never>;
}
}
7 changes: 7 additions & 0 deletions vue-injections.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Vue from 'vue'
declare module 'vue/types/vue' {
interface Vue {
$redrawVueMasonry (id:string): void
$redrawVueMasonry (): void
}
}

0 comments on commit acf9add

Please sign in to comment.