Inmueble.find({ usuario: id }).skip(Number(desde)).limit(Number(limite)).sort(orden),
in previous versions of typescript it worked correctly for me but with the new versions it no longer works for me
src/controllers/inmuebles.ts:133:83 - error TS2345: Argument of type 'string | string[] | ParsedQs | ParsedQs[]' is not assignable to parameter of type 'string | { [key: string]: SortOrder | { $meta: "textScore"; }; } | null | undefined'. Type 'string[]' is not assignable to type 'string | { [key: string]: SortOrder | { $meta: "textScore"; }; } | null | undefined'. Type 'string[]' is not assignable to type '{ [key: string]: SortOrder | { $meta: "textScore"; }; }'. Index signature is missing in type 'string[]'. 133 Inmueble.find({ usuario: id }).skip(Number(desde)).limit(Number(limite)).sort(orden),
how should i replace it?
in this lanecode i have an error: <pre>Inmueble.find({ usuario: id }).skip(Number(desde)).limit(Number(limite)).sort(orden),
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)