Skip to content

Commit f32ee97

Browse files
committed
refactor: forgotten input with strict typings
1 parent c0cc874 commit f32ee97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/child/child.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
22
import { getObservableLifecycle } from 'ngx-observable-lifecycle';
3+
import { Nilable } from 'tsdef';
34

45
@Component({
56
selector: 'app-child',
67
templateUrl: './child.component.html',
78
changeDetection: ChangeDetectionStrategy.OnPush,
89
})
910
export class ChildComponent {
10-
@Input() input: number;
11+
@Input() input: Nilable<number>;
1112

1213
constructor() {
1314
const {

0 commit comments

Comments
 (0)