-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
Codecov Report
@@ 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
... and 73 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This comment has been minimized.
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> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export class LoadAsyncWrapperComponent<T = any> { | |
export class LoadAsyncWrapperComponent<T = unknown> { |
Any reason to use any here?
There was a problem hiding this comment.
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 ✅
Description
Add strong typing support for
*htLoadAsync
directive.