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/common/dictionaries/nb/index.d.ts
2022-04-25 14:43:48 -04:00

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