Skip to content

Feature/class fields docs - #13877

Merged
sdepold merged 5 commits into
mainfrom
feature/class-fields-docs
Jan 1, 2022
Merged

sdepold merged 5 commits into
mainfrom
feature/class-fields-docs

Conversation

@sdepold

@sdepold sdepold commented Jan 1, 2022

Copy link
Copy Markdown
Member

copy of #13861

@sdepold
sdepold merged commit 016c88e into main Jan 1, 2022
@sdepold
sdepold deleted the feature/class-fields-docs branch January 1, 2022 13:24
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]>
@github-actions

github-actions Bot commented Jan 1, 2022

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 7.0.0-alpha.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions

github-actions Bot commented Jan 4, 2022

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 7.0.0-alpha2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove // Note that the null assertion ! is required in strict mode. comment.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Comment?

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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!

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Comment valid?

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants