UNPKG

fx-form-widget

Version:
18 lines (17 loc) 632 B
export interface Response { code?: string; success: boolean; message?: string; data?: any; } export declare function catchRequestError<T>(): (target: T, methodName: string, description: PropertyDescriptor) => void; interface FormRelated { submit<T>(url?: string, data?: T): Promise<Response>; getOptionsByUrl<T>(url?: string, data?: T): Promise<Response>; } declare class FormRelatedStore implements FormRelated { submit<T>(url?: string, data?: T): Promise<Response>; getOptionsByUrl<T>(url?: string, data?: T): Promise<Response>; } declare const _default: FormRelatedStore; export default _default;