First upload version 0.0.1
This commit is contained in:
24
node_modules/node-llama-cpp/dist/cli/utils/ConsoleTable.d.ts
generated
vendored
Normal file
24
node_modules/node-llama-cpp/dist/cli/utils/ConsoleTable.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export declare class ConsoleTable<const T extends readonly ConsoleTableColumn[]> {
|
||||
private readonly _columns;
|
||||
private readonly _columnSeparator;
|
||||
private readonly _drawHeaderRowSeparator;
|
||||
constructor(columns: T, { columnSeparator, drawHeaderRowSeparator }?: {
|
||||
columnSeparator?: string;
|
||||
drawHeaderRowSeparator?: boolean;
|
||||
});
|
||||
logHeader({ drawRowSeparator }?: {
|
||||
drawRowSeparator?: boolean;
|
||||
}): void;
|
||||
logLine(data: {
|
||||
[key in T[number]["key"]]?: string;
|
||||
}): void;
|
||||
}
|
||||
export type ConsoleTableColumn<K extends string = string> = {
|
||||
readonly key: K;
|
||||
readonly title?: string;
|
||||
readonly titleFormatter?: (value: string) => string;
|
||||
readonly width?: number;
|
||||
readonly valueFormatter?: (value: string) => string;
|
||||
readonly canSpanOverEmptyColumns?: boolean;
|
||||
readonly visible?: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user