@darwish/hooks-core
Version:
11 lines (10 loc) • 321 B
TypeScript
export interface UseConsoleOption {
env?: "development" | "production" | "test";
isAuth?: boolean;
}
export default function useConsole(options?: UseConsoleOption): {
log: (...data: any[]) => void;
warn: (...data: any[]) => void;
error: (...data: any[]) => void;
dir: (...data: any[]) => void;
};