Add OC typings
parent
ed8ae2cce1
commit
65d8a478e1
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue