You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
maotu-webtopo/global.d.ts

29 lines
775 B
TypeScript

declare global {
interface Window {
$svgEventCallBack: (type: string, svg_item_id: string, ...args: any[]) => void;
$setItemAttrByID: (id: string, key: string, val: any) => Promise<unknown>;
$getItemAttrByID: (id: string, key: string, val: any) => any;
$previewCompareVal: (val1: any, operator: '>' | '<' | '=' | '!=', val2: any) => boolean;
globalData: Map<string, import('@/components/mt-edit/store/types').DataItem>;
}
// 添加 Rec 服务的类型定义
interface RecService {
service: {
node: {
runtimes: Record<string, {
double: number;
node: {
name: string;
};
}>;
};
};
}
interface ParentWindow extends Window {
Rec?: RecService;
}
}
export {};