Skip to content

Commit a47c507

Browse files
committed
Update vue shims
This updates the augment from `@vue/runtime core` to `vue`. See: vuejs/router#2295 Signed-off-by: Phillip Rak <[email protected]>
1 parent bea6fda commit a47c507

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

creators/extension/pkg/vue-shim.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
declare module '*.vue' {
2-
import Vue from 'vue';
3-
export default Vue;
1+
/* eslint-disable */
2+
export { };
3+
4+
declare module 'vue' {
5+
interface ComponentCustomProperties {
6+
/**
7+
* Lookup a given string with the given arguments
8+
* @param raw if set, do not do HTML escaping.
9+
*/
10+
t: {
11+
(key: string, args?: Record<string, any>, raw?: boolean): string;
12+
(options: { k: string; raw?: boolean; tag?: string | Record<string, any>; escapehtml?: boolean }): string;
13+
}
14+
}
415
}

pkg/rancher-components/src/shim-vue.d.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
import { DefineComponent } from 'vue'
1+
export {}
22

3-
declare module '*.vue' {
4-
const component: DefineComponent<{}, {}, any>
5-
export default component
6-
}
7-
8-
declare module '@vue/runtime-core' {
3+
declare module 'vue' {
94
interface ComponentCustomProperties {
105
/**
116
* Lookup a given string with the given arguments

shell/types/vue-shim.d.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
/* eslint-disable */
2-
import type { DefineComponent } from 'vue'
3-
import { ComponentCustomProperties } from 'vue';
2+
export {};
43

5-
declare module '*.vue' {
6-
const component: DefineComponent<{}, {}, any>
7-
export default component
8-
}
9-
10-
declare module '@vue/runtime-core' {
4+
declare module 'vue' {
115
interface ComponentCustomProperties {
126
t: {
137
(key: string, args?: Record<string, any>, raw?: boolean): string;

0 commit comments

Comments
 (0)