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

refactor: change WithConfig API & add strict property init check #4653

Closed
wants to merge 5 commits into from

Conversation

wzhudev
Copy link
Member

@wzhudev wzhudev commented Jan 8, 2020

  • WithConfig 装饰的对象必须要赋值初始值,不然无法正确工作
  • 对于 ViewChildren ContentChildren 一律使用 ! assert 为非空,在 Angular 里 QueryList 对象总是存在
  • 对于 ViewChild ContentChildstatic: false 时使用 ? 标记为可能为空,static: true 时标记为 !

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@pr-triage pr-triage bot added the PR: draft label Jan 8, 2020
@codecov
Copy link

codecov bot commented Jan 8, 2020

Codecov Report

❗ No coverage uploaded for pull request head (withconfig-refactor@44ddcc9). Click here to learn what that means.
The diff coverage is n/a.

@wzhudev
Copy link
Member Author

wzhudev commented Jan 11, 2020

Pending other issues in milestone 9.0.0 ...

@wzhudev wzhudev changed the title [POC] refactor: change WithConfig API refactor: change WithConfig API Apr 21, 2020
@wzhudev wzhudev changed the title refactor: change WithConfig API refactor: change WithConfig API & add strict property init check Apr 21, 2020
@wzhudev wzhudev force-pushed the withconfig-refactor branch 2 times, most recently from eb20675 to 3e714a9 Compare April 26, 2020 11:42
Wendell added 4 commits April 27, 2020 19:30
chore: merge *nix and windows scripts

fix: remove console
to support more strict ts checks

fix: fix perperty initialization

fix: init

fix: fix missing properties

fix: fix missing file

test: remove test strict checks
@wzhudev wzhudev marked this pull request as ready for review April 28, 2020 05:33
@wzhudev
Copy link
Member Author

wzhudev commented Apr 28, 2020

CI breaks. Try to fix it by creating a new PR.

@wzhudev wzhudev closed this Apr 28, 2020
@wzhudev wzhudev deleted the withconfig-refactor branch April 30, 2020 02:31
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.

2 participants