diff --git a/resources/ts/Models/Model.ts b/resources/ts/Models/Model.ts index 309a01426..0286fbb2d 100644 --- a/resources/ts/Models/Model.ts +++ b/resources/ts/Models/Model.ts @@ -39,7 +39,10 @@ export default abstract class Model>(): Promise> { + static all & { + new (): M; + // @ts-ignore + }>(this: M): Promise> { // @ts-expect-error return this.get(); }