Evan You 3 лет назад
Родитель
Сommit
0fbc19f2d0
3 измененных файлов с 4 добавлено и 3 удалено
  1. 1 1
      package.json
  2. 1 1
      test-dts/defineCustomElement.test-d.ts
  3. 2 1
      test-dts/ref.test-d.ts

+ 1 - 1
package.json

@@ -15,7 +15,7 @@
     "test-unit": "vitest -c vitest.unit.config.ts",
     "test-e2e": "node scripts/build.mjs vue -f global -d && vitest -c vitest.e2e.config.ts",
     "test-dts": "node scripts/build.mjs shared reactivity runtime-core runtime-dom -dt -f esm-bundler && npm run test-dts-only",
-    "test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.mjson",
+    "test-dts-only": "tsc -p ./test-dts/tsconfig.json && tsc -p ./test-dts/tsconfig.build.json",
     "test-coverage": "vitest -c vitest.unit.config.ts --coverage",
     "release": "node scripts/release.mjs",
     "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",

+ 1 - 1
test-dts/defineCustomElement.test-d.ts

@@ -1,4 +1,4 @@
-import { defineCustomElement, expectType, expectError } from './index'
+import { defineCustomElement, expectType, expectError, describe } from './index'
 
 describe('inject', () => {
   // with object inject

+ 2 - 1
test-dts/ref.test-d.ts

@@ -11,7 +11,8 @@ import {
   toRefs,
   ToRefs,
   shallowReactive,
-  readonly
+  readonly,
+  describe
 } from './index'
 
 function plainType(arg: number | Ref<number>) {