From 3e1f712a64c4f4be8df073a242ff70e273bde506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20B=C3=B6sel?= Date: Fri, 7 May 2021 16:24:56 +0200 Subject: [PATCH] add typescript definitions --- index.d.ts | 6 ++++++ vue-injections.d.ts | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 index.d.ts create mode 100644 vue-injections.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..8910788 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,6 @@ +declare module 'vue-masonry' { + import Vue, { PluginFunction } from 'vue'; + export class VueMasonryPlugin { + static install: PluginFunction; + } +} diff --git a/vue-injections.d.ts b/vue-injections.d.ts new file mode 100644 index 0000000..42e5baf --- /dev/null +++ b/vue-injections.d.ts @@ -0,0 +1,7 @@ +import Vue from 'vue' +declare module 'vue/types/vue' { + interface Vue { + $redrawVueMasonry (id:string): void + $redrawVueMasonry (): void + } +}