28 lines
637 B
TypeScript
28 lines
637 B
TypeScript
|
|
export interface FigletFont {
|
||
|
|
name: string;
|
||
|
|
fileName: string;
|
||
|
|
path: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface FigletOptions {
|
||
|
|
font?: string;
|
||
|
|
horizontalLayout?: 'default' | 'fitted' | 'full' | 'controlled smushing' | 'universal smushing';
|
||
|
|
verticalLayout?: 'default' | 'fitted' | 'full' | 'controlled smushing' | 'universal smushing';
|
||
|
|
width?: number;
|
||
|
|
whitespaceBreak?: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface ConversionResult {
|
||
|
|
text: string;
|
||
|
|
font: string;
|
||
|
|
result: string;
|
||
|
|
timestamp: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface UserPreferences {
|
||
|
|
theme: 'light' | 'dark' | 'system';
|
||
|
|
defaultFont: string;
|
||
|
|
recentFonts: string[];
|
||
|
|
favorites: string[];
|
||
|
|
}
|