Skip to content

Commit

Permalink
add typescript definitions
Browse files Browse the repository at this point in the history
fivetide committed May 7, 2021
1 parent 94a5f90 commit 3e1f712
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 3e1f712

Please sign in to comment.