Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 2a5f0b5

Browse files
frangioRasPhilCo
authored andcommitted
fix: sync types with @oclif/parser (#67)
1 parent e6f5223 commit 2a5f0b5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"bugs": "https://github.com/oclif/command/issues",
77
"dependencies": {
88
"@oclif/errors": "^1.2.2",
9-
"@oclif/parser": "^3.7.3",
9+
"@oclif/parser": "^3.8.3",
1010
"debug": "^4.1.1",
1111
"semver": "^5.6.0"
1212
},

src/flags.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export type Input<T extends Parser.flags.Output> = { [P in keyof T]: IFlag<T[P]>
2828

2929
export type Definition<T> = {
3030
(options: {multiple: true} & Partial<IOptionFlag<T>>): IOptionFlag<T[]>
31-
(options: {required: true} & Partial<IOptionFlag<T>>): IOptionFlag<T>
31+
(options: ({required: true} | {default: Parser.flags.Default<T>}) & Partial<IOptionFlag<T>>): IOptionFlag<T>
3232
(options?: Partial<IOptionFlag<T>>): IOptionFlag<T | undefined>
3333
}
3434

yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@
8686
chalk "^2.4.1"
8787
tslib "^1.9.3"
8888

89-
"@oclif/parser@^3.7.3":
90-
version "3.7.3"
91-
resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.7.3.tgz#cb2240f457396e7b1af2f13caa0dca85b92a5a37"
92-
integrity sha512-yfYpDzVn9ipo4HZtYLfMtd3j3ArpTQlRbQfy9pNnHFd4VedE2PNYQTRWYYMuu1FxEOoknlMZbzsewVvl41TvKg==
89+
"@oclif/parser@^3.8.3":
90+
version "3.8.3"
91+
resolved "https://registry.yarnpkg.com/@oclif/parser/-/parser-3.8.3.tgz#717fbbe5bfafef4270224b8bd41a2d3c80b9554e"
92+
integrity sha512-zN+3oGuv9Lg8NjFvxZTDKFEmhAMfAvd/JWeQp3Ri8pDezoyJQi4OSHHLM8sdHjBh8sePewfWI7+fDUXdrVbrqg==
9393
dependencies:
9494
"@oclif/linewrap" "^1.0.0"
95-
chalk "^2.4.1"
95+
chalk "^2.4.2"
9696
tslib "^1.9.3"
9797

9898
"@oclif/plugin-help@^2.1.6":

0 commit comments

Comments
 (0)