From 0e8d9c1de649816f57e01d9ef8522dc26318a2dc Mon Sep 17 00:00:00 2001 From: Ryan Elian Date: Wed, 18 Oct 2017 16:14:51 +0700 Subject: [PATCH] Improved vue compiled template type definition. --- templates/vue+/client/js/template.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/vue+/client/js/template.d.ts b/templates/vue+/client/js/template.d.ts index 63ac4cc4..b337b333 100644 --- a/templates/vue+/client/js/template.d.ts +++ b/templates/vue+/client/js/template.d.ts @@ -1,13 +1,13 @@ -import Vue from 'vue'; +import { CreateElement, VNode } from 'vue'; declare global { - interface CompiledVueTemplate { - render: Vue.CreateElement, - staticRenderFns: ((createElement: Vue.CreateElement) => Vue.VNode)[] + interface VueCompiledTemplate { + render(h: CreateElement): VNode; + staticRenderFns: ((h: CreateElement) => VNode)[]; } module '*.html' { - let _: CompiledVueTemplate; + let _: VueCompiledTemplate; export = _; } }