Я хочу расширить IFindOptions sequelize-typescipt.Поэтому я сделал следующий код:
declare module "sequelize-typescript" {
interface IFindOptions<T> extends LoggingOptions, SearchPathOptions {
lang?: string
}
}
Теперь я пытаюсь вызвать мою модель:
ExampleModel.findAll({lang: 'en'})
Линтер в VS-Code не выдает ошибку, но я не могу скомпилироватьиз-за следующей ошибки
Error TS2345: Argument of type '{ where: { process_definition_id: any; }; include: { model: typeof StepSuccessorDefinition; as: s...' is not assignable to parameter of type 'IFindOptions<StepDefinition> | undefined'.
Object literal may only specify known properties, and 'lang' does not exist in type 'IFindOptions<StepDefinition> | undefined'.
Как мне скомпилировать код?