From 65d8a478e15c99e50a46710b6acef810389af606 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Fri, 28 Oct 2022 19:34:04 -0700 Subject: [PATCH] Add OC typings --- src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.ts b/src/main.ts index 094e9ea5..a73dd38d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,6 +19,9 @@ * along with this program. If not, see . * */ + +/// + import "reflect-metadata"; import Vue from "vue"; import VueVirtualScroller from "vue-virtual-scroller"; @@ -30,6 +33,8 @@ import router from "./router"; // Global exposed variables declare global { var vuerouter: typeof router; + var OC: Nextcloud.v24.OC; + var OCP: Nextcloud.v24.OCP; } globalThis.vuerouter = router;