Skip to content

Commit

Permalink
update readme and remove tsdef so that there's no extra lib in the re…
Browse files Browse the repository at this point in the history
…adme demo
  • Loading branch information
maxime1992 committed Feb 2, 2024
1 parent f32ee97 commit 1ee8140
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ import { getObservableLifecycle } from 'ngx-observable-lifecycle';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ChildComponent {
@Input() input: number;
@Input() input: number | undefined | null;
constructor() {
const {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"protractor": "~7.0.0",
"semantic-release": "^17.2.3",
"ts-node": "~8.3.0",
"tsdef": "0.0.14",
"typescript": "~4.4.4"
},
"repository": {
Expand Down
3 changes: 1 addition & 2 deletions src/app/child/child.component.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { getObservableLifecycle } from 'ngx-observable-lifecycle';
import { Nilable } from 'tsdef';

@Component({
selector: 'app-child',
templateUrl: './child.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ChildComponent {
@Input() input: Nilable<number>;
@Input() input: number | undefined | null;

constructor() {
const {
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12006,11 +12006,6 @@ ts-node@~8.3.0:
source-map-support "^0.5.6"
yn "^3.0.0"

[email protected]:
version "0.0.14"
resolved "https://registry.yarnpkg.com/tsdef/-/tsdef-0.0.14.tgz#fb401d58d5c08699091942981ac1b5fa8ef23412"
integrity sha512-UjMD4XKRWWFlFBfwKVQmGFT5YzW/ZaF8x6KpCDf92u9wgKeha/go3FU0e5WqDjXsCOdfiavCkfwfVHNDxRDGMA==

[email protected], tslib@^2.3.0, tslib@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
Expand Down

0 comments on commit 1ee8140

Please sign in to comment.