Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: type definitions for columns constraint #355

Merged
merged 4 commits into from
Oct 9, 2022
Merged

Conversation

JimmyDaddy
Copy link
Collaborator

  • this.attribute(columnName), this.attribute(columnName, v)
  • attributeWas previousChanged
  • orderOptions
  • minimum(columnName) and others

@@ -177,6 +179,10 @@ export type PickTypeKeys<Obj, Type, T extends keyof Obj = keyof Obj> = ({ [P in

export type Values<T> = Partial<Omit<T, PickTypeKeys<T, Function> | 'isNewRecord' | 'Model' | 'dataValues'>>;

export type BoneColumns<T extends typeof AbstractBone, Key extends keyof InstanceType<T> = keyof Values<InstanceType<T>>> = Key;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JimmyDaddy JimmyDaddy changed the title [WIP]fix: type definitions for columns constraint fix: type definitions for columns constraint Oct 8, 2022
@cyjake cyjake merged commit e8e2bb3 into master Oct 9, 2022
@cyjake cyjake deleted the fix/type_definitions_3 branch October 9, 2022 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants