From 195a35e9a4455475ac281065330438bb2c694723 Mon Sep 17 00:00:00 2001 From: ZHAO Jinxiang Date: Tue, 28 Dec 2021 17:27:18 +0800 Subject: [PATCH] fix: more accurate types for URL and vue-router (#23) --- playground/default/vite.config.js | 2 +- playground/jsx-pinia-with-tests/vite.config.js | 2 +- playground/jsx-pinia/vite.config.js | 2 +- playground/jsx-router-pinia-with-tests/src/App.vue | 7 ++++--- playground/jsx-router-pinia-with-tests/vite.config.js | 2 +- playground/jsx-router-pinia/src/App.vue | 7 ++++--- playground/jsx-router-pinia/vite.config.js | 2 +- playground/jsx-router-with-tests/src/App.vue | 7 ++++--- playground/jsx-router-with-tests/vite.config.js | 2 +- playground/jsx-router/src/App.vue | 7 ++++--- playground/jsx-router/vite.config.js | 2 +- playground/jsx-with-tests/vite.config.js | 2 +- playground/jsx/vite.config.js | 2 +- playground/pinia-with-tests/vite.config.js | 2 +- playground/pinia/vite.config.js | 2 +- playground/router-pinia-with-tests/src/App.vue | 7 ++++--- playground/router-pinia-with-tests/vite.config.js | 2 +- playground/router-pinia/src/App.vue | 7 ++++--- playground/router-pinia/vite.config.js | 2 +- playground/router-with-tests/src/App.vue | 7 ++++--- playground/router-with-tests/vite.config.js | 2 +- playground/router/src/App.vue | 7 ++++--- playground/router/vite.config.js | 2 +- playground/typescript-jsx-pinia-with-tests/vite.config.ts | 2 +- playground/typescript-jsx-pinia/vite.config.ts | 2 +- .../typescript-jsx-router-pinia-with-tests/src/App.vue | 7 ++++--- .../typescript-jsx-router-pinia-with-tests/vite.config.ts | 2 +- playground/typescript-jsx-router-pinia/src/App.vue | 7 ++++--- playground/typescript-jsx-router-pinia/vite.config.ts | 2 +- playground/typescript-jsx-router-with-tests/src/App.vue | 7 ++++--- playground/typescript-jsx-router-with-tests/vite.config.ts | 2 +- playground/typescript-jsx-router/src/App.vue | 7 ++++--- playground/typescript-jsx-router/vite.config.ts | 2 +- playground/typescript-jsx-with-tests/vite.config.ts | 2 +- playground/typescript-jsx/vite.config.ts | 2 +- playground/typescript-pinia-with-tests/vite.config.ts | 2 +- playground/typescript-pinia/vite.config.ts | 2 +- playground/typescript-router-pinia-with-tests/src/App.vue | 7 ++++--- .../typescript-router-pinia-with-tests/vite.config.ts | 2 +- playground/typescript-router-pinia/src/App.vue | 7 ++++--- playground/typescript-router-pinia/vite.config.ts | 2 +- playground/typescript-router-with-tests/src/App.vue | 7 ++++--- playground/typescript-router-with-tests/vite.config.ts | 2 +- playground/typescript-router/src/App.vue | 7 ++++--- playground/typescript-router/vite.config.ts | 2 +- playground/typescript-with-tests/vite.config.ts | 2 +- playground/typescript/vite.config.ts | 2 +- playground/with-tests/vite.config.js | 2 +- template/base/vite.config.js | 2 +- template/code/router/src/App.vue | 7 ++++--- template/code/typescript-router/src/App.vue | 7 ++++--- template/config/jsx/vite.config.js | 2 +- 52 files changed, 106 insertions(+), 88 deletions(-) diff --git a/playground/default/vite.config.js b/playground/default/vite.config.js index 5cd06c63..116273fb 100644 --- a/playground/default/vite.config.js +++ b/playground/default/vite.config.js @@ -1,4 +1,4 @@ -import { fileURLToPath } from 'url' +import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' diff --git a/playground/jsx-pinia-with-tests/vite.config.js b/playground/jsx-pinia-with-tests/vite.config.js index f140f276..db4edfd9 100644 --- a/playground/jsx-pinia-with-tests/vite.config.js +++ b/playground/jsx-pinia-with-tests/vite.config.js @@ -1,4 +1,4 @@ -import { fileURLToPath } from 'url' +import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' diff --git a/playground/jsx-pinia/vite.config.js b/playground/jsx-pinia/vite.config.js index f140f276..db4edfd9 100644 --- a/playground/jsx-pinia/vite.config.js +++ b/playground/jsx-pinia/vite.config.js @@ -1,4 +1,4 @@ -import { fileURLToPath } from 'url' +import { fileURLToPath, URL } from 'url' import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' diff --git a/playground/jsx-router-pinia-with-tests/src/App.vue b/playground/jsx-router-pinia-with-tests/src/App.vue index 37edbaf4..460e5b29 100644 --- a/playground/jsx-router-pinia-with-tests/src/App.vue +++ b/playground/jsx-router-pinia-with-tests/src/App.vue @@ -1,4 +1,5 @@ @@ -10,13 +11,13 @@ import HelloWorld from '@/components/HelloWorld.vue' - +