Skip to content

Commit

Permalink
Targeted formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxschmeling committed Apr 19, 2024
1 parent 220a5a5 commit ffca37e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/lib/app-slowlogs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export interface DefaultOptions {
};
}

export type SlowlogFormats = 'json' | 'csv' | 'table';
export type SlowlogFormats = 'json' | 'csv' | 'table';

type Stringable =

Check failure on line 16 in src/lib/app-slowlogs/types.ts

View workflow job for this annotation

GitHub Actions / Lint

Replace `⏎↹|·string⏎↹` with `·string·`
| string
| { toString: () => string; };
| { toString: () => string };

export interface GetSlowLogsOptions extends DefaultOptions {
limit: number;
Expand Down
5 changes: 1 addition & 4 deletions src/lib/cli/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ export function formatData(
data: Record< string, unknown >[],
format: 'ids' | 'json' | 'csv'
): string;
export function formatData(
data: Record< string, Stringable >[],
format: OutputFormat
): string;
export function formatData( data: Record< string, Stringable >[], format: OutputFormat ): string;
export function formatData(
data: Record< string, unknown >[] | Tuple[],
format: OutputFormat
Expand Down

0 comments on commit ffca37e

Please sign in to comment.