type ApiFunction = (() => Promise>) | (() => Promise); export type BasicApi = { code: number; data: T; msg?: string; message?: string; }; export type TPromiseApi = ApiFunction; export {};