detect-embeded/types/index.d.ts

34 lines
791 B
TypeScript
Raw Normal View History

2024-11-14 13:43:41 +08:00
declare interface Fn<T = any, R = T> {
(...arg: T[]): R;
}
declare interface PromiseFn<T = any, R = T> {
(...arg: T[]): Promise<R>;
}
declare type RefType<T> = T | null;
declare type LabelValueOptions = {
label: string;
value: any;
[key: string]: string | number | boolean;
}[];
declare type EmitType = (event: string, ...args: any[]) => void;
declare type TargetContext = '_self' | '_blank';
declare interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
$el: T;
}
declare type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>;
declare let AMap: any;
2024-11-15 17:30:24 +08:00
2025-02-06 15:29:05 +08:00
declare let DeviceClientService: any;
declare let WebViewService: any;
2025-02-07 12:06:32 +08:00
declare let OCRService: any;