fix: 🏷️ Fix tipizzazione

This commit is contained in:
Maicol Battistini 2023-07-14 11:22:47 +02:00
parent a3070f752e
commit 5cb4f0c605
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -40,9 +40,9 @@ export default abstract class Model<A extends ModelAttributes, R extends ModelRe
* Returns all the instances of the model. (Alias of {@link Model.get}).
*/
static all<M extends typeof Model<any, any> & {
new (): M;
new (): InstanceType<M>;
// @ts-ignore
}>(this: M): Promise<PluralResponse<M>> {
}>(this: M): Promise<PluralResponse<InstanceType<M>>> {
// @ts-expect-error
return this.get();
}