Add OC typings

old-stable24^2
Varun Patil 2022-10-28 19:34:04 -07:00
parent ed8ae2cce1
commit 65d8a478e1
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
/// <reference types="@nextcloud/typings" />
import "reflect-metadata"; import "reflect-metadata";
import Vue from "vue"; import Vue from "vue";
import VueVirtualScroller from "vue-virtual-scroller"; import VueVirtualScroller from "vue-virtual-scroller";
@ -30,6 +33,8 @@ import router from "./router";
// Global exposed variables // Global exposed variables
declare global { declare global {
var vuerouter: typeof router; var vuerouter: typeof router;
var OC: Nextcloud.v24.OC;
var OCP: Nextcloud.v24.OCP;
} }
globalThis.vuerouter = router; globalThis.vuerouter = router;