syspell/src/spellChecker.ts
MassiveBox 032e7f0b8c
All checks were successful
Build on Push and create Release on Tag / build (push) Successful in 4m2s
Add offline spell-checking
2025-10-04 16:22:54 +02:00

15 lines
No EOL
376 B
TypeScript

export type Language = { name: string; code: string; longCode: string; }
export type Suggestion = {
message: string
shortMessage: string
replacements: string[]
offset: number
length: number
typeName: string
}
export interface SpellChecker {
check(text: string, languages: string[]): Promise<Suggestion[]>
getLanguages(): Promise<Language[]>
}