Skip to content

Commit

Permalink
fix(types): fix generic type of Model#changed (#16047)
Browse files Browse the repository at this point in the history
Co-authored-by: Zoé <zoe@ephys.dev>
  • Loading branch information
Synthetic-Dev and ephys committed Jun 17, 2023
1 parent ca470f7 commit fad20ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2957,8 +2957,8 @@ export abstract class Model<TModelAttributes extends {} = any, TCreationAttribut
// - getChanges(): string[];
// - isDirty(key: string): boolean;
// - setDirty(key: string, dirty: boolean = true): void;
changed<K extends keyof this>(key: K): boolean;
changed<K extends keyof this>(key: K, dirty: boolean): void;
changed<K extends keyof TModelAttributes>(key: K): boolean;
changed<K extends keyof TModelAttributes>(key: K, dirty: boolean): void;
changed(): false | string[];

/**
Expand Down

0 comments on commit fad20ee

Please sign in to comment.