UNPKG

shineout

Version:

Shein 前端组件库

10 lines (9 loc) 479 B
export declare class FormError extends Error { value: any; constructor(message: string, name?: string, value?: any); } export declare function wrapFormError<T>(error: T): T; export declare function wrapFormError(error: Error): FormError; export declare function wrapFormError(error: Error[]): FormError[]; export declare const promiseAll: (ops: Promise<any>[], isForm?: boolean) => Promise<unknown>; export declare const isSameError: (a: unknown, b: unknown) => boolean;