Skip to content

Commit

Permalink
Update vue shims
Browse files Browse the repository at this point in the history
This updates the augment from `@vue/runtime core` to `vue`.

See: vuejs/router#2295

Signed-off-by: Phillip Rak <[email protected]>
  • Loading branch information
rak-phillip committed Jan 13, 2025
1 parent 57915d3 commit 6b08fee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
17 changes: 14 additions & 3 deletions creators/extension/pkg/vue-shim.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
export {}

Check warning on line 1 in creators/extension/pkg/vue-shim.ts

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon

declare module 'vue' {
interface ComponentCustomProperties {

Check warning on line 4 in creators/extension/pkg/vue-shim.ts

View workflow job for this annotation

GitHub Actions / lint

'ComponentCustomProperties' is defined but never used
/**
* Lookup a given string with the given arguments
* @param raw if set, do not do HTML escaping.
*/
t: {
(key: string, args?: Record<string, any>, raw?: boolean): string;
(options: { k: string; raw?: boolean; tag?: string | Record<string, any>; escapehtml?: boolean }): string;
}
}
}

Check failure on line 15 in creators/extension/pkg/vue-shim.ts

View workflow job for this annotation

GitHub Actions / lint

Too many blank lines at the end of file. Max of 0 allowed
9 changes: 2 additions & 7 deletions pkg/rancher-components/src/shim-vue.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import { DefineComponent } from 'vue'
export {}

declare module '*.vue' {
const component: DefineComponent<{}, {}, any>
export default component
}

declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
/**
* Lookup a given string with the given arguments
Expand Down
10 changes: 2 additions & 8 deletions shell/types/vue-shim.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
/* eslint-disable */
import type { DefineComponent } from 'vue'
import { ComponentCustomProperties } from 'vue';
export {};

declare module '*.vue' {
const component: DefineComponent<{}, {}, any>
export default component
}

declare module '@vue/runtime-core' {
declare module 'vue' {
interface ComponentCustomProperties {
t: {
(key: string, args?: Record<string, any>, raw?: boolean): string;
Expand Down

0 comments on commit 6b08fee

Please sign in to comment.