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

Commit 22d874c3 by Kunal Nain Committed by Sushant

fix(types): Model.primaryKeyAttributes (#11406)

1 parent fb3f0734
Showing with 11 additions and 0 deletions
......@@ -1535,6 +1535,11 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
public static readonly primaryKeyAttribute: string;
/**
* The name of the primary key attributes
*/
public static readonly primaryKeyAttributes: string[];
/**
* An object hash from alias to association object
*/
public static readonly associations: {
......
......@@ -67,3 +67,8 @@ UserModel.findCreateFind({
}
})
/**
* Test for primaryKeyAttributes.
*/
class TestModel extends Model {};
TestModel.primaryKeyAttributes;
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!