From 2cbc5251149f5d555d6c8ed93b624d78f1a0a118 Mon Sep 17 00:00:00 2001 From: lapy Date: Sat, 25 Apr 2026 17:06:19 +0100 Subject: [PATCH] fix(manager-mobile): track wot-design-uni typings despite src/types gitignore Type stubs must be force-added; plain git add manager-mobile/ skipped this path. --- main/manager-mobile/src/types/wot-design-uni-api.d.ts | 8 ++++++++ main/manager-mobile/src/types/wot-design-uni-toast.d.ts | 5 +++++ main/manager-mobile/src/types/wot-design-uni.d.ts | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100644 main/manager-mobile/src/types/wot-design-uni-api.d.ts create mode 100644 main/manager-mobile/src/types/wot-design-uni-toast.d.ts create mode 100644 main/manager-mobile/src/types/wot-design-uni.d.ts 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 {}