dictionaries icon indicating copy to clipboard operation
dictionaries copied to clipboard

using with nspell error

Open kyapo33 opened this issue 7 months ago • 0 comments

import fr from 'dictionary-fr const dict = nspell(fr);

when i try to use the dictionnary with nspell i have this type error

Argument of type 'Dictionary' is not assignable to parameter of type 'Dictionary | Dictionary[]'. Type 'import("/Users/yapokevin/Desktop/next-project/project/node_modules/dictionary-fr/index").Dictionary' is not assignable to type 'Dictionary'. Types of property 'aff' are incompatible. Type 'Uint8Array' is not assignable to type 'string | Buffer'. Type 'Uint8Array' is missing the following properties from type 'Buffer': write, toJSON, equals, compare, and 66 more

        and even if i use `const dict = nspell(fr.aff, fr.dic)`;

or const dict = nspell(fr.aff.buffer, fr.dic.buffer); its not working

kyapo33 avatar Jun 28 '24 15:06 kyapo33