Archived
1
0
Fork 0
This repository has been archived on 2024-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
emacs/dictionaries/he/index.d.ts

29 lines
634 B
TypeScript

declare namespace load {
/**
* Object representing a hunspell dictionary, with `aff` and `dic` fields.
*/
interface Dictionary {
/**
* Buffer in UTF-8 for the affix file (defines the language, keyboard, flags, and more).
*/
aff: Buffer
/**
* Buffer in UTF-8 for the dictionary file (contains words and flags applying to those words).
*/
dic: Buffer
}
/**
* Callback called when dictionary is loaded.
*/
type Callback = (
error: NodeJS.ErrnoException | undefined,
result: Dictionary
) => void
}
declare const load: (callback: load.Callback) => void
export = load