Skip to content

Commit

Permalink
typings: add Model.fill & update destroyAll return
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddyuchina committed Mar 13, 2024
1 parent d015e03 commit d885f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>;
static destroyAll(): void;
static destroyAll(): Promise<void>;
}

export class Attribute {
Expand Down Expand Up @@ -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<T extends Model>(relation: string): T | Collection<T> | null | undefined;
Expand Down

0 comments on commit d885f71

Please sign in to comment.