Repository navigation
Feature/class fields docs - #13877
Merged
Merged
Conversation
sdepold
added a commit
that referenced
this pull request
Jan 1, 2022
* docs: add caveat regarding public class fields * docs: update link to class field caveat * feat: improve public class field shadowing detection * refactor: fix lint issue * docs: fix code being incorrectly tagged as invalid Co-authored-by: Guylian Cox <[email protected]> Co-authored-by: Zoé <[email protected]>
Contributor
|
🎉 This PR is included in version 7.0.0-alpha.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Jan 2, 2022
Contributor
|
🎉 This PR is included in version 7.0.0-alpha2.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
reduardo7
reviewed
Jan 21, 2022
| public id!: number; // Note that the `null assertion` `!` is required in strict mode. | ||
| public name!: string; | ||
| public preferredName!: string | null; // for nullable fields | ||
| declare id: number; // Note that the `null assertion` `!` is required in strict mode. |
There was a problem hiding this comment.
Remove // Note that the null assertion ! is required in strict mode. comment.
Member
There was a problem hiding this comment.
Oh yeah good catch. Do you want to open a follow-up PR?
| public hasProject!: HasManyHasAssociationMixin<Project, number>; | ||
| public countProjects!: HasManyCountAssociationsMixin; | ||
| public createProject!: HasManyCreateAssociationMixin<Project>; | ||
| declare getProjects: HasManyGetAssociationsMixin<Project>; // Note the null assertions! |
| public id!: number; // Note that the `null assertion` `!` is required in strict mode. | ||
| public name!: string; | ||
| public preferredName!: string | null; // for nullable fields | ||
| declare id: number; // Note that the `null assertion` `!` is required in strict mode. |
There was a problem hiding this comment.
Remove Note that the null assertion ! is required in strict mode. comment.
| public hasProject!: HasManyHasAssociationMixin<Project, number>; | ||
| public countProjects!: HasManyCountAssociationsMixin; | ||
| public createProject!: HasManyCreateAssociationMixin<Project>; | ||
| declare getProjects: HasManyGetAssociationsMixin<Project>; // Note the null assertions! |
aliatsis
pushed a commit
to creditiq/sequelize
that referenced
this pull request
Jun 2, 2022
* docs: add caveat regarding public class fields * docs: update link to class field caveat * feat: improve public class field shadowing detection * refactor: fix lint issue * docs: fix code being incorrectly tagged as invalid Co-authored-by: Guylian Cox <[email protected]> Co-authored-by: Zoé <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
copy of #13861