- Configurable server URL (default: pedshub.com) - Android + iOS platforms initialized - Dark theme matching quiz app (#0f172a) - Status bar and navigation bar color matched - Auto-redirect on subsequent launches - App ID: com.pedshub.quiz, App Name: PedsHub Build: cd mobile && npx cap sync && npx cap open android Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
/// <reference types="node" />
|
|
/// <reference types="node" />
|
|
import { Colors } from './colors';
|
|
import { TaskChain } from './tasks';
|
|
export interface OutputStrategy {
|
|
readonly stream: NodeJS.WritableStream;
|
|
readonly colors: Colors;
|
|
write(msg: string): boolean;
|
|
createTaskChain(): TaskChain;
|
|
}
|
|
export interface StreamOutputStrategyOptions {
|
|
readonly stream?: NodeJS.WritableStream;
|
|
readonly colors?: Colors;
|
|
}
|
|
export declare class StreamOutputStrategy implements OutputStrategy {
|
|
readonly stream: NodeJS.WritableStream;
|
|
readonly colors: Colors;
|
|
constructor({ stream, colors }: StreamOutputStrategyOptions);
|
|
write(msg: string): boolean;
|
|
createTaskChain(): TaskChain;
|
|
}
|
|
export interface TTYOutputStrategyOptions extends StreamOutputStrategyOptions {
|
|
readonly stream?: NodeJS.WriteStream;
|
|
}
|
|
export declare class TTYOutputStrategy extends StreamOutputStrategy implements OutputStrategy {
|
|
readonly stream: NodeJS.WriteStream;
|
|
protected readonly redrawer: TTYOutputRedrawer;
|
|
constructor({ stream, colors }?: TTYOutputStrategyOptions);
|
|
createTaskChain(): TaskChain;
|
|
}
|
|
export interface TTYOutputRedrawerOptions {
|
|
readonly stream?: NodeJS.WriteStream;
|
|
}
|
|
export declare class TTYOutputRedrawer {
|
|
readonly stream: NodeJS.WriteStream;
|
|
constructor({ stream }: TTYOutputRedrawerOptions);
|
|
get width(): number;
|
|
redraw(msg: string): void;
|
|
clear(): void;
|
|
end(): void;
|
|
}
|