不要怂,就是干,撸起袖子干!

Commit 466e361e by Constantin Metz Committed by GitHub

fix(types): fix `Model#previous` type (#13106)

1 parent 9cb4d7f3
Showing with 1 additions and 1 deletions
......@@ -2708,7 +2708,7 @@ export abstract class Model<TModelAttributes extends {} = any, TCreationAttribut
/**
* Returns the previous value for key from `_previousDataValues`.
*/
public previous<K extends keyof this>(key: K): this[K];
public previous<K extends keyof TCreationAttributes>(key: K): TCreationAttributes[K] | undefined;
/**
* Validates this instance, and if the validation passes, persists it to the database.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!