You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node_modules/@typegoose/typegoose/lib/hooks.d.ts:8:41 - error TS2707: Generic type 'Query<ResultType, DocType, THelpers, RawDocType>' requires betw
een 2 and 4 type arguments.
node_modules/@types/webpack/index.d.ts:29:3 - error TS2305: Module '"../tapable"' has no exported member 'Tapable'.
29 Tapable,
~~~~~~~
node_modules/@types/webpack/index.d.ts:940:23 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:941:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
941 factory: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:942:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
node_modules/@types/webpack/index.d.ts:943:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
node_modules/@types/webpack/index.d.ts:944:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
944 createModule: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:945:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
945 module: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:946:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
946 createParser: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:948:30 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
948 createGenerator: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:949:24 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
949 generator: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:958:33 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
958 evaluateTypeof: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:959:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
959 evaluate: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:960:37 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
960 evaluateIdentifier: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:961:44 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
961 evaluateDefinedIdentifier: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:962:47 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
node_modules/@types/webpack/index.d.ts:963:28 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
963 statement: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:964:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
964 statementIf: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:965:24 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
965 label: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:966:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
966 import: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:967:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
967 importSpecifier: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:968:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
968 export: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:969:31 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
969 exportImport: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:970:36 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
970 exportDeclaration: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:971:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
971 exportExpression: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:972:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
972 exportSpecifier: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:973:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
node_modules/@types/webpack/index.d.ts:974:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
974 varDeclaration: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:975:36 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
975 varDeclarationLet: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:976:38 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
976 varDeclarationConst: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:977:36 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
977 varDeclarationVar: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:978:28 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
978 canRename: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:979:25 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
979 rename: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:980:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
980 assigned: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:981:25 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
981 typeof: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:982:29 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
982 importCall: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:983:23 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
983 call: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:984:32 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
984 callAnyMember: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:985:22 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
985 new: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:986:29 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
986 expression: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:987:38 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
987 expressionAnyMember: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:988:48 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
node_modules/@types/webpack/index.d.ts:989:44 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
node_modules/@types/webpack/index.d.ts:990:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
990 program: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:999:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
node_modules/@types/webpack/index.d.ts:1000:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
node_modules/@types/webpack/index.d.ts:1001:33 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:1002:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
node_modules/@types/webpack/index.d.ts:1022:21 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1022 unseal: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1023:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1023 seal: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1025:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1026:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1027:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1030:23 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1030 optimize: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1032:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1033:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1034:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1049:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1049 shouldRecord: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1068:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1068 beforeHash: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1069:24 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1069 afterHash: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1075:33 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1075 beforeModuleAssets: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1076:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1077:32 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1077 beforeChunkAssets: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1082:31 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.
node_modules/@types/webpack/index.d.ts:1088:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1089:24 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.
1089 afterSeal: AsyncSeriesHook;
~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1097:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1098:28 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1098 childCompiler: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1102:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1103:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1104:46 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1117:27 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:1118:32 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:1119:28 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:1120:24 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:1132:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:1133:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1133 module: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1134:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1134 render: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1135:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
node_modules/@types/webpack/index.d.ts:1136:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1136 hash: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1211:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
node_modules/@types/webpack/index.d.ts:1213:29 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.
node_modules/@types/webpack/index.d.ts:1229:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1229 watchClose: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1230:26 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1230 environment: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1231:31 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1231 afterEnvironment: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1234:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1234 entryOption: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1246:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1246 watchClose: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1312:24 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
src/controllers/upload/upload.config.ts:48:47 - error TS2339: Property 'trim' does not exist on type 'string | string[] | ParsedQs | ParsedQs[]'.
Property 'trim' does not exist on type 'string[]'.
48 const dir = (req.query.dir || '').trim();
~~~~
src/models/base.repository.ts:8:3 - error TS2724: Module '"mongoose"' has no exported member 'ModelPopulateOptions'. Did you mean 'ModelUpdateOptio
ns'?
8 ModelPopulateOptions,
~~~~~~~~~~~~~~~~~~~~
src/models/base.repository.ts:9:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndRemoveOptions'.
src/models/base.repository.ts:88:41 - error TS2345: Argument of type 'FindConditions' is not assignable to parameter of type '_FilterQuery<Docum
entType>'.
Type 'FindConditions' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extends [n
ever] ? DocumentType[P] : string | DocumentType<...>[P]>; }'.
Type '"typegooseName" | keyof (T extends Base ? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "sch
ema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T)' is not assignable to type 'keyof T'.
Type '"typegooseName"' is not assignable to type 'keyof T'.
Type '"typegooseName"' is not assignable to type '"id" | "created_at" | "updated_at"'.
src/models/base.repository.ts:90:9 - error TS2345: Argument of type 'Query<EnforceDocument<DocumentType, {}>[], EnforceDocument<DocumentType,
{}>, {}, DocumentType>' is not assignable to parameter of type 'DocumentQuery<DocumentType[], DocumentType, {}>'.
The types of 'count(...).deleteMany(...).distinct(...).replaceOne' are incompatible between these types.
Type '{ (filter?: _FilterQuery<EnforceDocument<DocumentType, {}>>, replacement?: DocumentDefinition<EnforceDocument<DocumentType, {}>>, o
ptions?: QueryOptions, callback?: Callback<...>): Query<...>; (filter?: _FilterQuery<...>, replacement?: Object, options?: QueryOptions, callback?:
Callback<...>): Query<...>; }' is not assignable to type '{ (filter?: _FilterQuery<DocumentType>, replacement?: DocumentDefinition<DocumentType
>, options?: QueryOptions, callback?: Callback<...>): Query<...>; (filter?: _FilterQuery<...>, replacement?: Object, options?: QueryOptions, cal
lback?: Callback<...>): Query<...>; }'.
Types of parameters 'replacement' and 'replacement' are incompatible.
Type 'DocumentDefinition<DocumentType>' is not assignable to type 'DocumentDefinition<EnforceDocument<DocumentType, {}>>'.
Type 'Exclude<keyof EnforceDocument<DocumentType, {}>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "updat
e" | "invalidate" | ... 44 more ... | "validateSync">' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<
Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<
...> & T), "get" | ... 52 more ... | "validateSync">'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base
? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Do
cument<...> & T), "get" | ... 52 more ... | "validateSync">'.
Type 'string | number | symbol' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<
any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 52 more ... | "validateSync">'.
Type 'string' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<any, any, any>,
"get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T), "get" | ... 52
more ... | "validateSync">'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName"'.
Type 'string | number | symbol' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Doc
ument<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...
& T), "get" | ... 52 more ... | "validateSync">'.
Type 'string' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<any, any,
any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T), "get" |
... 52 more ... | "validateSync">'.
Type 'Exclude<keyof EnforceDocument<DocumentType, {}>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "eq
uals" | "update" | "invalidate" | ... 44 more ... | "validateSync">' is not assignable to type '"typegooseName"'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName"'.
Type 'string | number | symbol' is not assignable to type '"typegooseName"'.
Type 'string' is not assignable to type '"typegooseName"'.
Type 'string | number | symbol' is not assignable to type '"typegooseName"'.
Type 'string' is not assignable to type '"typegooseName"'.
90 docsQuery,
~~~~~~~~~
src/models/base.repository.ts:111:9 - error TS2345: Argument of type 'ObjectId | FindConditions | { _id: string; }' is not assignable to paramet
er of type '_FilterQuery<DocumentType>'.
Type 'ObjectId' is not assignable to type '_FilterQuery<DocumentType>'.
Type 'ObjectId' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extends [never] ?
DocumentType[P] : string | DocumentType<...>[P]>; }'.
src/models/base.repository.ts:116:9 - error TS2345: Argument of type 'Query<EnforceDocument<DocumentType, {}>, EnforceDocument<DocumentType,
{}>, {}, DocumentType>' is not assignable to parameter of type 'DocumentQuery<DocumentType, DocumentType, {}>'.
The types returned by '$where(...)' are incompatible between these types.
Type 'Query<EnforceDocument<DocumentType, {}>[], EnforceDocument<DocumentType, {}>, {}, DocumentType>' is not assignable to type 'Quer
y<DocumentType[], DocumentType, {}, DocumentType>'.
116 docsQuery,
~~~~~~~~~
src/models/base.repository.ts:154:31 - error TS2769: No overload matches this call.
Overload 1 of 2, '(callback?: Callback): Query<number, EnforceDocument<DocumentType, {}>, {}, DocumentType>', gave the following er
ror.
Argument of type 'FindConditions' is not assignable to parameter of type 'Callback'.
Type 'FindConditions' provides no match for the signature '(error: NativeError, result: number): void'.
Overload 2 of 2, '(filter: _FilterQuery<DocumentType>, callback?: Callback): Query<number, EnforceDocument<DocumentType, {}>, {}, D
ocumentType<...>>', gave the following error.
Argument of type 'FindConditions' is not assignable to parameter of type '_FilterQuery<DocumentType>'.
Type 'FindConditions' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extend
s [never] ? DocumentType[P] : string | DocumentType<...>[P]>; }'.
src/models/base.repository.ts:175:11 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '{ [x: string]: boolean; }' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<DocumentType<T
'.
Type '{ [x: string]: boolean; }' is not assignable to type 'UpdateQuery<DocumentType>'.
Type '{ [x: string]: boolean; }' is not assignable to type 'ReadonlyPartial<__UpdateQueryDef<Pick<_LeanDocument<DocumentType>, "typegoos
eName" | Exclude<keyof (T extends Base ? Pick<Document<any, any, any>, "get" | ... 54 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 53 more ... | "$isSingleNested">>>>'.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.
src/models/base.repository.ts:199:11 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '{ [x: string]: boolean; }' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<DocumentType<T
>>'.
Type '{ [x: string]: boolean; }' is not assignable to type 'UpdateQuery<DocumentType<T>>'.
Type '{ [x: string]: boolean; }' is not assignable to type 'ReadonlyPartial<__UpdateQueryDef<Pick<_LeanDocument<DocumentType<T>>, "typegoos
eName" | Exclude<keyof (T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | ... 54 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 53 more ... | "$isSingleNested">>>>'.
199 {
~
200 [deletedPath]: false,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
201 },
~~~~~~~~~~~
node_modules/mongoose/index.d.ts:998:5
998 findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery<T> | UpdateWithAggregationPipeline, options?: QueryOptions | null,
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
EnforceDocument<T, TMethods>, TQueryHelpers, T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.
src/models/base.repository.ts:222:41 - error TS2769: No overload matches this call.
Overload 1 of 3, '(filter?: _FilterQuery<DocumentType<T>>, options?: QueryOptions, callback?: CallbackWithoutResult): Query<{ ...; } & { ...; },
EnforceDocument<...>, {}, DocumentType<...>>', gave the following error.
Argument of type 'string | ObjectId | FindConditions<T>' is not assignable to parameter of type '_FilterQuery<DocumentType<T>>'.
Type 'string' is not assignable to type '_FilterQuery<DocumentType<T>>'.
Type 'string' is not assignable to type '{ [P in keyof DocumentType<T>]?: Condition<[Extract<DocumentType<T>[P], ObjectId>] extends [never]
? DocumentType<T>[P] : string | DocumentType<...>[P]>; }'.
Overload 2 of 3, '(filter: _FilterQuery<DocumentType<T>>, callback: CallbackWithoutResult): Query<{ ok?: number; n?: number; } & { deletedCount?:
number; }, EnforceDocument<...>, {}, DocumentType<...>>', gave the following error.
Argument of type 'string | ObjectId | FindConditions<T>' is not assignable to parameter of type '_FilterQuery<DocumentType<T>>'.
Type 'string' is not assignable to type '_FilterQuery<DocumentType<T>>'.
Type 'string' is not assignable to type '{ [P in keyof DocumentType<T>]?: Condition<[Extract<DocumentType<T>[P], ObjectId>] extends [never]
? DocumentType<T>[P] : string | DocumentType<...>[P]>; }'.
222 return await this.model.deleteOne(conditions, options).exec();
~~~~~~~~~~
src/models/base.repository.ts:241:40 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type 'QueryDeepPartialEntity<T>' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<DocumentType<T
>>'.
Type 'QueryDeepPartialEntity<T>' is not assignable to type 'UpdateQuery<DocumentType<T>>'.
Type 'QueryDeepPartialEntity<T>' is not assignable to type 'ReadonlyPartial<__UpdateQueryDef<Pick<_LeanDocument<DocumentType<T>>, "typegoos
eName" | Exclude<keyof (T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | ... 54 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 53 more ... | "$isSingleNested">>>>'.
Type '"typegooseName" | Exclude<keyof (T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "coll
ection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T), "get" | ... 53 more ... | "$isSingleNested">' is not as
signable to type 'keyof T'.
Type '"typegooseName"' is not assignable to type 'keyof T'.
241 .findByIdAndUpdate(conditions, partialEntity, options)
~~~~~~~~~~~~~
node_modules/mongoose/index.d.ts:998:5
998 findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery<T> | UpdateWithAggregationPipeline, options?: QueryOptions | null,
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
EnforceDocument<T, TMethods>, TQueryHelpers, T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.
src/models/base.repository.ts:270:40 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '{ $inc: { [key: string]: number; }; }' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<Do
cumentType<T>>'.
Types of property '$inc' are incompatible.
Type '{ [key: string]: number; }' is not assignable to type 'OnlyFieldsOfType<__UpdateQueryDef<DocumentType<T>>, NumericTypes, NumericTypes
> & AnyObject'.
Type '{ [key: string]: number; }' is not assignable to type 'OnlyFieldsOfType<__UpdateQueryDef<DocumentType<T>>, NumericTypes, NumericTyp
es>'.
270 .findByIdAndUpdate(conditions, { $inc: property }, { new: true })
~~~~~~~~~~~~~~~~~~
node_modules/mongoose/index.d.ts:998:5
998 findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery<T> | UpdateWithAggregationPipeline, options?: QueryOptions | null,
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
EnforceDocument<T, TMethods>, TQueryHelpers, T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The last overload is declared here.
src/models/base.repository.ts:322:33 - error TS2344: Type 'DocumentType<T>' does not satisfy the constraint 'Document<any, any, any>'.
The types of 'replaceOne(...).$where(...).and' are incompatible between these types.
Type '(array: _FilterQuery<T extends Base<ObjectId> ? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema"
| "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T : Document<...> & T>[]) => Query<...>' is not assignable to type '(ar
ray: _FilterQuery<Document<any, any, any>>[]) => Query<Document<any, any, any>[], Document<any, any, any>, {}, Document<any, any, any>>'.
Types of parameters 'array' and 'array' are incompatible.
Type '_FilterQuery<Document<any, any, any>>[]' is not assignable to type '_FilterQuery<T extends Base<ObjectId> ? Pick<Document<any, any, a
ny>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T : Doc
ument<...> & T>[]'.
Type '_FilterQuery<Document<any, any, any>>' is not assignable to type '_FilterQuery<T extends Base<ObjectId> ? Pick<Document<any, any, a
ny>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T : Doc
ument<...> & T>'.
Type '_FilterQuery<Document<any, any, any>>' is not assignable to type '{ [P in keyof (T extends Base<ObjectId> ? Pick<Document<any, an
y, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "update" | "invalidate" | ... 46 more ... | "validateSync"> & T :
Document<...> & T)]?: Condition<...>; }'.
322 docsQuery: DocumentQuery<D, DocumentType<T>, {}>,
~~~~~~~~~~~~~~~
src/models/base.repository.ts:324:23 - error TS2344: Type 'DocumentType<T>' does not satisfy the constraint 'Document<any, any, any>'.
324 ): DocumentQuery<D, DocumentType<T>, {}> {
~~~~~~~~~~~~~~~
src/models/repository.ts:4:3 - error TS2724: Module '"mongoose"' has no exported member 'ModelPopulateOptions'. Did you mean 'ModelUpdateOptions'?
4 ModelPopulateOptions,
~~~~~~~~~~~~~~~~~~~~
src/models/repository.ts:5:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndRemoveOptions'.
5 QueryFindOneAndRemoveOptions,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/models/repository.ts:6:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndUpdateOptions'.
6 QueryFindOneAndUpdateOptions,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
下午12:23:51 - Found 111 errors. Watching for file changes.
The text was updated successfully, but these errors were encountered:
node_modules/@typegoose/typegoose/lib/hooks.d.ts:8:41 - error TS2707: Generic type 'Query<ResultType, DocType, THelpers, RawDocType>' requires betw
een 2 and 4 type arguments.
8 declare type PreFnWithQuery = (this: Query, next?: (error?: Error) => void, done?: EmptyVoidFn) => void;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:29:3 - error TS2305: Module '"../tapable"' has no exported member 'Tapable'.
29 Tapable,
~~~~~~~
node_modules/@types/webpack/index.d.ts:940:23 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
940 resolver: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:941:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
941 factory: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:942:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
942 beforeResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:943:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
943 afterResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:944:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
944 createModule: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:945:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
945 module: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:946:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
946 createParser: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:948:30 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
948 createGenerator: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:949:24 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
949 generator: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:958:33 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
958 evaluateTypeof: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:959:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
959 evaluate: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:960:37 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
960 evaluateIdentifier: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:961:44 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
961 evaluateDefinedIdentifier: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:962:47 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
962 evaluateCallExpressionMember: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:963:28 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
963 statement: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:964:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
964 statementIf: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:965:24 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
965 label: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:966:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
966 import: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:967:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
967 importSpecifier: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:968:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
968 export: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:969:31 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
969 exportImport: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:970:36 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
970 exportDeclaration: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:971:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
971 exportExpression: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:972:34 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
972 exportSpecifier: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:973:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
973 exportImportSpecifier: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:974:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
974 varDeclaration: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:975:36 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
975 varDeclarationLet: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:976:38 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
976 varDeclarationConst: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:977:36 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
977 varDeclarationVar: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:978:28 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
978 canRename: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:979:25 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
979 rename: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:980:27 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
980 assigned: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:981:25 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
981 typeof: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:982:29 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
982 importCall: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:983:23 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
983 call: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:984:32 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
984 callAnyMember: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:985:22 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
985 new: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:986:29 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
986 expression: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:987:38 - error TS2314: Generic type 'HookMap' requires 1 type argument(s).
987 expressionAnyMember: HookMap;
~~~~~~~
node_modules/@types/webpack/index.d.ts:988:48 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
988 expressionConditionalOperator: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:989:44 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
989 expressionLogicalOperator: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:990:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type ar
guments.
990 program: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:999:28 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
999 beforeResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1000:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
1000 afterResolve: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1001:33 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1001 contextModuleFiles: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1002:27 - error TS2707: Generic type 'AsyncSeriesWaterfallHook<T, AdditionalOptions>' requires between 1 and
2 type arguments.
1002 alternatives: AsyncSeriesWaterfallHook;
~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1022:21 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1022 unseal: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1023:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1023 seal: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1025:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1025 optimizeDependenciesBasic: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1026:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1026 optimizeDependencies: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1027:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1027 optimizeDependenciesAdvanced: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1030:23 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1030 optimize: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1032:35 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1032 optimizeModulesBasic: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1033:30 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1033 optimizeModules: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1034:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1034 optimizeModulesAdvanced: SyncBailHook<Module[]>;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1049:27 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1049 shouldRecord: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1068:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1068 beforeHash: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1069:24 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1069 afterHash: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1075:33 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1075 beforeModuleAssets: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1076:40 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1076 shouldGenerateChunkAssets: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1077:32 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1077 beforeChunkAssets: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1082:31 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.
1082 additionalAssets: AsyncSeriesHook;
~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1088:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1088 needAdditionalSeal: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1089:24 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.
1089 afterSeal: AsyncSeriesHook;
~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1097:33 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1097 needAdditionalPass: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1098:28 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1098 childCompiler: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1102:43 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1102 optimizeExtractedChunksBasic: SyncBailHook<Chunk[]>;
~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1103:38 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1103 optimizeExtractedChunks: SyncBailHook<Chunk[]>;
~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1104:46 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1104 optimizeExtractedChunksAdvanced: SyncBailHook<Chunk[]>;
~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1117:27 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1117 jsonpScript?: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1118:32 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1118 requireExtensions: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1119:28 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1119 requireEnsure: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1120:24 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1120 localVars: SyncWaterfallHook<string, Chunk, string>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1132:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1132 content: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1133:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1133 module: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1134:21 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1134 render: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1135:22 - error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type
arguments.
1135 package: SyncWaterfallHook;
~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1136:19 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1136 hash: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1211:25 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1211 shouldEmit: SyncBailHook;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1213:29 - error TS2707: Generic type 'AsyncSeriesHook<T, AdditionalOptions>' requires between 1 and 2 type a
rguments.
1213 additionalPass: AsyncSeriesHook;
~~~~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1229:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1229 watchClose: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1230:26 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1230 environment: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1231:31 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1231 afterEnvironment: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1234:26 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1234 entryOption: SyncBailHook;
~~~~~~~~~~~~
node_modules/@types/webpack/index.d.ts:1246:25 - error TS2707: Generic type 'SyncHook<T, R, AdditionalOptions>' requires between 1 and 3 type argum
ents.
1246 watchClose: SyncHook;
~~~~~~~~
node_modules/@types/webpack/index.d.ts:1312:24 - error TS2707: Generic type 'SyncBailHook<T, R, AdditionalOptions>' requires between 2 and 3 type a
rguments.
1312 _pluginCompat: SyncBailHook<compilation.Compilation>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app-home.dto.ts:14:32 - error TS2345: Argument of type 'TransformFnParams' is not assignable to parameter of type 'string'.
14 @Transform(value => parseInt(value, 10) || 1, { toClassOnly: true })
~~~~~
src/controllers/auth/dto/account.dto.ts:20:31 - error TS2339: Property 'toLowerCase' does not exist on type 'TransformFnParams'.
20 @Transform(value => value.toLowerCase(), { toClassOnly: true })
~~~~~~~~~~~
src/controllers/auth/dto/register.dto.ts:27:31 - error TS2339: Property 'toLowerCase' does not exist on type 'TransformFnParams'.
27 @Transform(value => value.toLowerCase(), { toClassOnly: true })
~~~~~~~~~~~
src/controllers/auth/dto/register.dto.ts:49:31 - error TS2339: Property 'toLowerCase' does not exist on type 'TransformFnParams'.
49 @Transform(value => value.toLowerCase(), { toClassOnly: true })
~~~~~~~~~~~
src/controllers/upload/upload.config.ts:48:47 - error TS2339: Property 'trim' does not exist on type 'string | string[] | ParsedQs | ParsedQs[]'.
Property 'trim' does not exist on type 'string[]'.
48 const dir = (req.query.dir || '').trim();
~~~~
src/models/base.repository.ts:8:3 - error TS2724: Module '"mongoose"' has no exported member 'ModelPopulateOptions'. Did you mean 'ModelUpdateOptio
ns'?
8 ModelPopulateOptions,
~~~~~~~~~~~~~~~~~~~~
src/models/base.repository.ts:9:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndRemoveOptions'.
9 QueryFindOneAndRemoveOptions,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/models/base.repository.ts:10:3 - error TS2305: Module '"mongoose"' has no exported member 'QueryFindOneAndUpdateOptions'.
10 QueryFindOneAndUpdateOptions,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/models/base.repository.ts:88:41 - error TS2345: Argument of type 'FindConditions' is not assignable to parameter of type '_FilterQuery<Docum
entType>'.
Type 'FindConditions' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extends [n
ever] ? DocumentType[P] : string | DocumentType<...>[P]>; }'.
Type '"typegooseName" | keyof (T extends Base ? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "sch
ema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T)' is not assignable to type 'keyof T'.
Type '"typegooseName"' is not assignable to type 'keyof T'.
Type '"typegooseName"' is not assignable to type '"id" | "created_at" | "updated_at"'.
88 const docsQuery = this.model.find(conditions, projection, options);
~~~~~~~~~~
src/models/base.repository.ts:90:9 - error TS2345: Argument of type 'Query<EnforceDocument<DocumentType, {}>[], EnforceDocument<DocumentType,
{}>, {}, DocumentType>' is not assignable to parameter of type 'DocumentQuery<DocumentType[], DocumentType, {}>'.
The types of 'count(...).deleteMany(...).distinct(...).replaceOne' are incompatible between these types.
Type '{ (filter?: _FilterQuery<EnforceDocument<DocumentType, {}>>, replacement?: DocumentDefinition<EnforceDocument<DocumentType, {}>>, o
ptions?: QueryOptions, callback?: Callback<...>): Query<...>; (filter?: _FilterQuery<...>, replacement?: Object, options?: QueryOptions, callback?:
Callback<...>): Query<...>; }' is not assignable to type '{ (filter?: _FilterQuery<DocumentType>, replacement?: DocumentDefinition<DocumentType
>, options?: QueryOptions, callback?: Callback<...>): Query<...>; (filter?: _FilterQuery<...>, replacement?: Object, options?: QueryOptions, cal
lback?: Callback<...>): Query<...>; }'.
Types of parameters 'replacement' and 'replacement' are incompatible.
Type 'DocumentDefinition<DocumentType>' is not assignable to type 'DocumentDefinition<EnforceDocument<DocumentType, {}>>'.
Type 'Exclude<keyof EnforceDocument<DocumentType, {}>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | "updat
e" | "invalidate" | ... 44 more ... | "validateSync">' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<
Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<
...> & T), "get" | ... 52 more ... | "validateSync">'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base
? Pick<Document<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Do
cument<...> & T), "get" | ... 52 more ... | "validateSync">'.
Type 'string | number | symbol' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<
any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T)
, "get" | ... 52 more ... | "validateSync">'.
Type 'string' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Document<any, any, any>,
"get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...> & T), "get" | ... 52
more ... | "validateSync">'.
Type 'keyof EnforceDocument<DocumentType, {}>' is not assignable to type '"typegooseName"'.
Type 'string | number | symbol' is not assignable to type '"typegooseName" | Exclude<keyof (T extends Base ? Pick<Doc
ument<any, any, any>, "get" | "set" | "delete" | "init" | "collection" | "schema" | "equals" | ... 48 more ... | "validateSync"> & T : Document<...
90 docsQuery,
~~~~~~~~~
src/models/base.repository.ts:111:9 - error TS2345: Argument of type 'ObjectId | FindConditions | { _id: string; }' is not assignable to paramet
er of type '_FilterQuery<DocumentType>'.
Type 'ObjectId' is not assignable to type '_FilterQuery<DocumentType>'.
Type 'ObjectId' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extends [never] ?
DocumentType[P] : string | DocumentType<...>[P]>; }'.
111 this.conditions(conditions),
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/models/base.repository.ts:116:9 - error TS2345: Argument of type 'Query<EnforceDocument<DocumentType, {}>, EnforceDocument<DocumentType,
{}>, {}, DocumentType>' is not assignable to parameter of type 'DocumentQuery<DocumentType, DocumentType, {}>'.
The types returned by '$where(...)' are incompatible between these types.
Type 'Query<EnforceDocument<DocumentType, {}>[], EnforceDocument<DocumentType, {}>, {}, DocumentType>' is not assignable to type 'Quer
y<DocumentType[], DocumentType, {}, DocumentType>'.
116 docsQuery,
~~~~~~~~~
src/models/base.repository.ts:154:31 - error TS2769: No overload matches this call.
Overload 1 of 2, '(callback?: Callback): Query<number, EnforceDocument<DocumentType, {}>, {}, DocumentType>', gave the following er
ror.
Argument of type 'FindConditions' is not assignable to parameter of type 'Callback'.
Type 'FindConditions' provides no match for the signature '(error: NativeError, result: number): void'.
Overload 2 of 2, '(filter: _FilterQuery<DocumentType>, callback?: Callback): Query<number, EnforceDocument<DocumentType, {}>, {}, D
ocumentType<...>>', gave the following error.
Argument of type 'FindConditions' is not assignable to parameter of type '_FilterQuery<DocumentType>'.
Type 'FindConditions' is not assignable to type '{ [P in keyof DocumentType]?: Condition<[Extract<DocumentType[P], ObjectId>] extend
s [never] ? DocumentType[P] : string | DocumentType<...>[P]>; }'.
154 return this.model.count(conditions).exec();
~~~~~~~~~~
src/models/base.repository.ts:175:11 - error TS2769: No overload matches this call.
The last overload gave the following error.
Argument of type '{ [x: string]: boolean; }' is not assignable to parameter of type 'UpdateWithAggregationPipeline | UpdateQuery<DocumentType<T
175 {
~
176 [deletedPath]: true,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
177 },
~~~~~~~~~~~
node_modules/mongoose/index.d.ts:998:5
998 findByIdAndUpdate(id?: mongodb.ObjectId | any, update?: UpdateQuery | UpdateWithAggregationPipeline, options?: QueryOptions | null,
callback?: (err: CallbackError, doc: EnforceDocument<T, TMethods> | null, res: any) => void): QueryWithHelpers<EnforceDocument<T, TMethods> | null,
EnforceDocument<T, TMethods>, TQueryHelpers, T>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: