Skip to content

Commit

Permalink
feat(typescript): improve tsx support (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
troy351 authored and yyx990803 committed Apr 27, 2018
1 parent 6ca86aa commit 3aa3743
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
import Vue, { VNode } from 'vue'

declare module '*.vue' {
import Vue from 'vue';
export default Vue;
export default Vue
}

declare global {
namespace JSX {
// tslint:disable no-empty-interface
interface Element extends VNode {}
// tslint:disable no-empty-interface
interface ElementClass extends Vue {}
interface IntrinsicElements {
[elem: string]: any
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts"
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 3aa3743

Please sign in to comment.