@@ -8,8 +8,6 @@ node_modules
yarn-error.log
yarn.lock
-**/types
-
# Logs
logs
*.log
@@ -1,2 +1,3 @@
-types/
-out/
+!src/types/
+/out/
+/types/
-./types/*
@@ -0,0 +1,19 @@
+namespace VirtualDOM {
+ interface VComment {
+ comment: string;
+ version: string;
+ type: string;
+ }
+
+ function isVComment(x: any): boolean;
+ interface VCommentConstructor {
+ new (comment: string): VComment;
+ type VTree = VText | VComment | VNode | Widget | Thunk;
+ declare interface h {
+ c(comment: string): VComment;
+}
@@ -0,0 +1,10 @@
+declare module "virtual-dom/vnode/vcomment" {
+ import VCommentConstructor = VirtualDOM.VCommentConstructor;
+ const VComment: VCommentConstructor;
+ export = VComment;
+declare module "virtual-dom/vnode/is-vcomment" {
+ import isVComment = VirtualDOM.isVComment;
+ export = isVComment;
@@ -8,6 +8,6 @@
"@/*": ["./*"]
}
},
- "include": ["./src/*.ts", "./src/types/**/*.d.ts"],
+ "include": ["./src/*.ts", "src/typings/**/*.d.ts"],
"exclude": ["node_modules"],