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

feat(load-async): add typing #2418

Merged
merged 3 commits into from
Sep 21, 2023
Merged

feat(load-async): add typing #2418

merged 3 commits into from
Sep 21, 2023

Conversation

adisreyaj
Copy link
Contributor

Description

Add strong typing support for *htLoadAsync directive.

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #2418 (97f489b) into main (02e5209) will decrease coverage by 1.93%.
The diff coverage is 89.47%.

@@            Coverage Diff             @@
##             main    #2418      +/-   ##
==========================================
- Coverage   82.83%   80.91%   -1.93%     
==========================================
  Files         921      921              
  Lines       20547    20549       +2     
  Branches     3241     3241              
==========================================
- Hits        17020    16627     -393     
- Misses       3402     3786     +384     
- Partials      125      136      +11     
Files Changed Coverage Δ
.../components/src/load-async/load-async.directive.ts 91.30% <71.42%> (-8.70%) ⬇️
...ts/components/src/load-async/load-async.service.ts 100.00% <100.00%> (ø)
...load-async/wrapper/load-async-wrapper.component.ts 96.42% <100.00%> (ø)

... and 73 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions

This comment has been minimized.

@@ -59,8 +59,8 @@ export const ASYNC_WRAPPER_PARAMETERS$ = new InjectionToken<Observable<LoadAsync
styleUrls: ['./load-async-wrapper.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class LoadAsyncWrapperComponent {
public readonly state$: Observable<AsyncState>;
export class LoadAsyncWrapperComponent<T = any> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export class LoadAsyncWrapperComponent<T = any> {
export class LoadAsyncWrapperComponent<T = unknown> {

Any reason to use any here?

Copy link
Contributor Author

@adisreyaj adisreyaj Sep 21, 2023

Choose a reason for hiding this comment

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

Nope. Missed updating it.

Updated ✅

@adisreyaj adisreyaj marked this pull request as ready for review September 21, 2023 14:08
@adisreyaj adisreyaj requested a review from a team as a code owner September 21, 2023 14:08
@github-actions

This comment has been minimized.

@adisreyaj adisreyaj enabled auto-merge (squash) September 21, 2023 14:30
@github-actions

This comment has been minimized.

@adisreyaj adisreyaj merged commit 24f49c6 into main Sep 21, 2023
13 of 14 checks passed
@adisreyaj adisreyaj deleted the feat/typed-loadasync branch September 21, 2023 16:57
@github-actions

This comment has been minimized.

@github-actions
Copy link

Unit Test Results

       4 files  ±0     310 suites  ±0   47m 54s ⏱️ + 4m 54s
1 123 tests ±0  1 123 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
1 133 runs  ±0  1 133 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 24f49c6. ± Comparison against base commit 02e5209.

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.

3 participants