signal-template-forms
Version:
A powerful, type-safe Angular forms library built with signals, providing reactive form management with excellent developer experience and performance.
20 lines (19 loc) • 653 B
TypeScript
import * as i0 from "@angular/core";
export interface WordCountStats {
characters: number;
words: number;
charactersWithSpaces: number;
lines: number;
}
export declare class WordCountService {
/**
* Counts words, characters, and lines in the given text
*/
getWordCount(text: string | null | undefined): WordCountStats;
/**
* Formats word count for display
*/
formatWordCount(stats: WordCountStats, format?: 'words' | 'characters' | 'both' | 'detailed'): string;
static ɵfac: i0.ɵɵFactoryDeclaration<WordCountService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<WordCountService>;
}