diff --git a/lib/model.d.ts b/lib/model.d.ts index a5b722a..331dab6 100644 --- a/lib/model.d.ts +++ b/lib/model.d.ts @@ -287,7 +287,7 @@ export interface IncludeThroughOptions extends Filterable, Projectable {} /** * Options for eager-loading associated models, also allowing for all associations to be loaded at once */ -export type Includeable = typeof Model | Association | IncludeOptions | { all: true } +export type Includeable = typeof Model | Association | IncludeOptions | { all: boolean; nested?: boolean } /** * Complex include options diff --git a/test/include.ts b/test/include.ts index caa68f5..cbc9373 100644 --- a/test/include.ts +++ b/test/include.ts @@ -19,3 +19,7 @@ MyModel.findAll({ MyModel.findAll({ include: [{ all: true }], }) + +MyModel.findAll({ + include: [{ all: true, nested: true }], +})