Skip to content

Commit

Permalink
Improved vue compiled template type definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanelian committed Oct 18, 2017
1 parent 6cdafcb commit 0e8d9c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/vue+/client/js/template.d.ts
Original file line number Diff line number Diff line change
@@ -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 = _;
}
}

0 comments on commit 0e8d9c1

Please sign in to comment.