Skip to content

Commit

Permalink
fix: actually export the LogSkipLine symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Aug 8, 2022
1 parent d3e2cd0 commit 1ba59df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { LogMessage, LogMessageFormatter } from './msg.js';
export { LogMessage, LogMessageFormatter, LogSkipLine } from './msg.js';
export { PrettySimple } from './pretty/simple.js';
export { PrettyTransform } from './transform.js';
6 changes: 4 additions & 2 deletions src/msg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ export interface LogMessage extends Record<string, unknown> {
export const LogSkipLine = Symbol('SkipLine');

export interface LogMessageFormatter {
/** Attempt to prettify the message
* @returns pretty message, null if prettyifying failed
/**
* Attempt to prettify a message
*
* @returns pretty message, null if prettyifying failed, SkipLine if line should be ignlred
*/
pretty(message: LogMessage): string | null | typeof LogSkipLine;
}

0 comments on commit 1ba59df

Please sign in to comment.