Skip to content

Commit

Permalink
Merge pull request #70 from cloudnc/refactor/strict-typescript-forgot…
Browse files Browse the repository at this point in the history
…ten-input

refactor: forgotten input with strict typings
  • Loading branch information
maxime1992 authored Feb 2, 2024
2 parents facd3a7 + 1ee8140 commit 5409e23
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 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
2 changes: 1 addition & 1 deletion src/app/child/child.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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
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 5409e23

Please sign in to comment.