Skip to content

Commit

Permalink
tests: add index, vue
Browse files Browse the repository at this point in the history
  • Loading branch information
sportshead committed May 4, 2024
1 parent 6e16a6b commit d2fd039
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,13 @@
},
"lint-staged": {
"*.ts(x)?": "prettier --write"
},
"tsd": {
"compilerOptions": {
"typeRoots": [
"./node_modules/@types",
"."
]
}
}
}
4 changes: 4 additions & 0 deletions test-d/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mw;
mw.log.warn("foo");

$;
4 changes: 4 additions & 0 deletions test-d/vue.test-d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { expectType } from "tsd";
import { createMwApp, createApp } from "vue";

expectType<typeof createApp>(createMwApp);

0 comments on commit d2fd039

Please sign in to comment.