fix: 🏷️ Fix tipizzazione
This commit is contained in:
parent
a3070f752e
commit
5cb4f0c605
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue