@expofp/debug 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export interface FormattedSegment {
|
|
3
3
|
text: string;
|
|
4
4
|
style: CSSProperties;
|
|
5
|
-
}
|
|
6
|
-
export
|
|
5
|
+
}
|
|
6
|
+
export interface FormattedArgs {
|
|
7
7
|
segments: FormattedSegment[];
|
|
8
8
|
trailing: unknown[];
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
/**
|
|
11
11
|
* Parse a console-style format string with `%c`/`%s`/`%d`/`%i`/`%f`/`%o`/`%O`/`%%`
|
|
12
12
|
* into styled text segments plus any trailing unconsumed args. Mirrors browser
|
package/dist/lib/log-store.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export type LogLevel = 'log' | 'debug' | 'info' | 'warn' | 'error';
|
|
2
|
-
export
|
|
2
|
+
export interface LogEntry {
|
|
3
3
|
level: LogLevel;
|
|
4
4
|
args: unknown[];
|
|
5
5
|
ts: number;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
7
|
export declare function getLogSnapshot(): readonly LogEntry[];
|
|
8
8
|
export declare function subscribeLogStore(listener: () => void): () => void;
|
|
9
9
|
export declare function appendLog(entry: LogEntry): void;
|