Skip to content

Commit 1ee8140

Browse files
committed
update readme and remove tsdef so that there's no extra lib in the readme demo
1 parent f32ee97 commit 1ee8140

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ import { getObservableLifecycle } from 'ngx-observable-lifecycle';
9494
changeDetection: ChangeDetectionStrategy.OnPush,
9595
})
9696
export class ChildComponent {
97-
@Input() input: number;
97+
@Input() input: number | undefined | null;
9898
9999
constructor() {
100100
const {

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"protractor": "~7.0.0",
7878
"semantic-release": "^17.2.3",
7979
"ts-node": "~8.3.0",
80-
"tsdef": "0.0.14",
8180
"typescript": "~4.4.4"
8281
},
8382
"repository": {

src/app/child/child.component.ts

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

54
@Component({
65
selector: 'app-child',
76
templateUrl: './child.component.html',
87
changeDetection: ChangeDetectionStrategy.OnPush,
98
})
109
export class ChildComponent {
11-
@Input() input: Nilable<number>;
10+
@Input() input: number | undefined | null;
1211

1312
constructor() {
1413
const {

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12006,11 +12006,6 @@ ts-node@~8.3.0:
1200612006
source-map-support "^0.5.6"
1200712007
yn "^3.0.0"
1200812008

12009-
12010-
version "0.0.14"
12011-
resolved "https://registry.yarnpkg.com/tsdef/-/tsdef-0.0.14.tgz#fb401d58d5c08699091942981ac1b5fa8ef23412"
12012-
integrity sha512-UjMD4XKRWWFlFBfwKVQmGFT5YzW/ZaF8x6KpCDf92u9wgKeha/go3FU0e5WqDjXsCOdfiavCkfwfVHNDxRDGMA==
12013-
1201412009
[email protected], tslib@^2.3.0, tslib@^2.3.1:
1201512010
version "2.3.1"
1201612011
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"

0 commit comments

Comments
 (0)