sapphire-support
Root Question Message
@sapphire/result
node_modules/@sapphire/result/dist/lib/Option.d.ts:45:46 - error TS2344: Type 'T[P]' does not satisfy the constraint 'Option<any>'.
Type 'T[keyof T]' is not assignable to type 'Option<any>'.
Type 'T[string] | T[number] | T[symbol]' is not assignable to type 'Option<any>'.
Type 'T[string]' is not assignable to type 'Option<any>'.
Type 'T[string]' is not assignable to type 'Some<any>'.
Type 'T[keyof T]' is not assignable to type 'Some<any>'.
Type 'T[P]' is not assignable to type 'Some<any>'.
Type 'T[keyof T]' is not assignable to type 'Some<any>'.
Type 'T[string] | T[number] | T[symbol]' is not assignable to type 'Some<any>'.
Type 'T[string]' is not assignable to type 'Some<any>'.
45 -readonly [P in keyof T]: UnwrapSome<T[P]>;
UnwrapSome
there's UnwrapOk
and UnwrapErr
in the last rowyarn dedupe
and also tried to reinstall my node_modules
, but sadly the error is still therepackage.json
:i18next-fs-backend
has some pretty nasty bugs and performance flaws that Kyra and I fixed in @skyra/i18next-backend
which is used in the pluginpackage.json
after migrating to prisma-redis-middleware
, and now after removing it I forgot to delete the comma 😅@sapphire/plugin-i18next
, to add this functionality there as well, but I haven't had time to do it yetimport { i18next } from 'i18next';
i18next.t('key');