From d885f71f4ff288a929445845f8efc55980b3d6cb Mon Sep 17 00:00:00 2001 From: kiddyu <58631254@qq.com> Date: Thu, 14 Mar 2024 03:54:45 +0800 Subject: [PATCH] typings: add Model.fill & update destroyAll return --- types/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 4f37205..2716b3a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -222,7 +222,7 @@ declare module 'sutando' { static transaction(callback: void, name?: string | null): any; static schema(name?: string | null): SchemaBuilder; static table(table: string, connection?: string): QueryBuilder; - static destroyAll(): void; + static destroyAll(): Promise; } export class Attribute { @@ -358,6 +358,7 @@ declare module 'sutando' { getAttributes(): object; getAttribute(key: string): any; setAttribute(key: string, value: any): this; + fill(attributes: any): this; setAppends(appends: string[]): this; append(key: string | string[]): this; getRelation(relation: string): T | Collection | null | undefined;