UNPKG

1.18 kBTypeScriptView Raw
1import type { ReactotronCore } from "../reactotron-core-client";
2/**
3 * Provides 4 features for logging. log & debug are the same.
4 */
5declare const logger: () => (reactotron: ReactotronCore) => {
6 features: {
7 log: (...args: any[]) => void;
8 logImportant: (...args: any[]) => void;
9 debug: (message: any, important?: any) => void;
10 warn: (message: any) => void;
11 error: (message: any, stack: any) => void;
12 };
13};
14export default logger;
15export type LoggerPlugin = ReturnType<typeof logger>;
16export declare const hasLoggerPlugin: (reactotron: ReactotronCore) => reactotron is ReactotronCore & {
17 log: (...args: any[]) => void;
18 logImportant: (...args: any[]) => void;
19 debug: (message: any, important?: any) => void;
20 warn: (message: any) => void;
21 error: (message: any, stack: any) => void;
22};
23export declare const assertHasLoggerPlugin: (reactotron: ReactotronCore) => asserts reactotron is ReactotronCore & {
24 log: (...args: any[]) => void;
25 logImportant: (...args: any[]) => void;
26 debug: (message: any, important?: any) => void;
27 warn: (message: any) => void;
28 error: (message: any, stack: any) => void;
29};