From c394a4f609b76509f103cb5b864a89b9cc63751c Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 7 Oct 2022 16:29:06 +0800 Subject: [PATCH] style: sync declaration --- .../com.msgbyte.topic/types/tailchat.d.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts index db546de0..f7d54660 100644 --- a/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts +++ b/server/plugins/com.msgbyte.topic/web/plugins/com.msgbyte.topic/types/tailchat.d.ts @@ -122,9 +122,15 @@ declare module '@capital/common' { export const useAsyncFn: any; - export const useAsyncRefresh: any; + export const useAsyncRefresh: Promise>( + fn: T, + deps?: React.DependencyList + ) => [{ loading: boolean; value?: any; error?: Error }, T]; - export const useAsyncRequest: any; + export const useAsyncRequest: Promise>( + 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;