|
|
|
@ -122,9 +122,15 @@ declare module '@capital/common' {
|
|
|
|
|
|
|
|
|
|
export const useAsyncFn: any;
|
|
|
|
|
|
|
|
|
|
export const useAsyncRefresh: any;
|
|
|
|
|
export const useAsyncRefresh: <T extends (...args: any[]) => Promise<any>>(
|
|
|
|
|
fn: T,
|
|
|
|
|
deps?: React.DependencyList
|
|
|
|
|
) => [{ loading: boolean; value?: any; error?: Error }, T];
|
|
|
|
|
|
|
|
|
|
export const useAsyncRequest: any;
|
|
|
|
|
export const useAsyncRequest: <T extends (...args: any[]) => Promise<any>>(
|
|
|
|
|
fn: T,
|
|
|
|
|
deps?: React.DependencyList
|
|
|
|
|
) => [{ loading: boolean; value?: any }, T];
|
|
|
|
|
|
|
|
|
|
export const uploadFile: any;
|
|
|
|
|
|
|
|
|
@ -133,6 +139,8 @@ declare module '@capital/common' {
|
|
|
|
|
type?: 'info' | 'success' | 'error' | 'warning'
|
|
|
|
|
) => void;
|
|
|
|
|
|
|
|
|
|
export const showSuccessToasts: any;
|
|
|
|
|
|
|
|
|
|
export const showErrorToasts: (error: any) => void;
|
|
|
|
|
|
|
|
|
|
export const fetchAvailableServices: any;
|
|
|
|
@ -143,6 +151,8 @@ declare module '@capital/common' {
|
|
|
|
|
|
|
|
|
|
export const sendMessage: any;
|
|
|
|
|
|
|
|
|
|
export const showMessageTime: any;
|
|
|
|
|
|
|
|
|
|
export const useLocation: any;
|
|
|
|
|
|
|
|
|
|
export const useNavigate: any;
|
|
|
|
@ -381,6 +391,8 @@ declare module '@capital/component' {
|
|
|
|
|
|
|
|
|
|
export const ErrorBoundary: any;
|
|
|
|
|
|
|
|
|
|
export const UserAvatar: any;
|
|
|
|
|
|
|
|
|
|
export const UserName: React.FC<{
|
|
|
|
|
userId: string;
|
|
|
|
|
className?: string;
|
|
|
|
|