From 70f929dc460dd1cd3af6c898ae05672965126770 Mon Sep 17 00:00:00 2001 From: Bas van Meurs Date: Thu, 2 Apr 2020 13:55:49 +0200 Subject: [PATCH] fix(vue-next): update type errors for new vue-next alpha --- src/runtime/patchProp.ts | 2 +- src/runtime/runtime.ts | 2 +- src/wrapper.ts | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/runtime/patchProp.ts b/src/runtime/patchProp.ts index eb40726..4dbf174 100644 --- a/src/runtime/patchProp.ts +++ b/src/runtime/patchProp.ts @@ -9,7 +9,7 @@ export function patchProp( isSVG: boolean, prevChildren?: VNode[], parentComponent?: ComponentInternalInstance, - parentSuspense?: SuspenseBoundary, + parentSuspense?: SuspenseBoundary, unmountChildren?: any, ) { patchElProp(el, key, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren); diff --git a/src/runtime/runtime.ts b/src/runtime/runtime.ts index a875080..784416a 100644 --- a/src/runtime/runtime.ts +++ b/src/runtime/runtime.ts @@ -4,7 +4,7 @@ import { patchProp } from "./patchProp"; import { Stage } from "tree2d/lib"; import Base from "./nodes/Base"; -export type VugelRender = RootRenderFunction; +export type VugelRender = RootRenderFunction; export function createRendererForStage(stage: Stage): VugelRender { const { render } = createRenderer({ diff --git a/src/wrapper.ts b/src/wrapper.ts index 48e9902..6301a25 100644 --- a/src/wrapper.ts +++ b/src/wrapper.ts @@ -1,13 +1,14 @@ import { createRendererForStage, VugelRender } from "./runtime/runtime"; import { effect, Ref, ref } from "@vue/reactivity"; -import { defineComponent, Fragment, h, onMounted } from "@vue/runtime-core"; +import {defineComponent, Fragment, h, onMounted} from "@vue/runtime-core"; import Node from "./runtime/nodes/Node"; import { Stage } from "tree2d/lib"; import { registerMouseEventDispatchers } from "./events"; import { registerTouchEventDispatchers } from "./events"; -export const Vugel = defineComponent({ + +export const Vugel: any = defineComponent({ props: { settings: { type: Object,