diff --git a/main/manager-mobile/src/types/wot-design-uni-api.d.ts b/main/manager-mobile/src/types/wot-design-uni-api.d.ts new file mode 100644 index 000000000..3b73d5009 --- /dev/null +++ b/main/manager-mobile/src/types/wot-design-uni-api.d.ts @@ -0,0 +1,8 @@ +declare module 'wot-design-uni' { + export type ConfigProviderThemeVars = Record + + export function useMessage(): any + export function useToast(): any +} + +export {} diff --git a/main/manager-mobile/src/types/wot-design-uni-toast.d.ts b/main/manager-mobile/src/types/wot-design-uni-toast.d.ts new file mode 100644 index 000000000..0cd98fce5 --- /dev/null +++ b/main/manager-mobile/src/types/wot-design-uni-toast.d.ts @@ -0,0 +1,5 @@ +declare module 'wot-design-uni/components/wd-toast' { + export function useToast(): any +} + +export {} diff --git a/main/manager-mobile/src/types/wot-design-uni.d.ts b/main/manager-mobile/src/types/wot-design-uni.d.ts new file mode 100644 index 000000000..8d0ab39fa --- /dev/null +++ b/main/manager-mobile/src/types/wot-design-uni.d.ts @@ -0,0 +1,9 @@ +import type { DefineComponent } from 'vue' + +declare module 'vue' { + export interface GlobalComponents { + [key: `Wd${string}`]: DefineComponent, Record, any> + } +} + +export {}