Comparing version 3.0.0-rc.10 to 3.0.0-rc.11
@@ -41,5 +41,2 @@ import { StrictValidator } from "typanion"; | ||
*/ | ||
export declare function String<T = string>(descriptor: string, opts: StringOptionTolerateBoolean<T> & { | ||
required: true; | ||
}): CommandOptionReturn<T | boolean>; | ||
export declare function String<T = string, Arity extends number = 1>(descriptor: string, opts: StringOptionNoBoolean<T, Arity> & { | ||
@@ -49,4 +46,7 @@ required: true; | ||
export declare function String<T = string, Arity extends number = 1>(descriptor: string, opts?: StringOptionNoBoolean<T, Arity>): CommandOptionReturn<WithArity<T, Arity> | undefined>; | ||
export declare function String<T = string, Arity extends number = 1>(descriptor: string, initialValue: WithArity<string, Arity>, opts?: Omit<StringOptionNoBoolean<T, Arity>, 'required'>): CommandOptionReturn<WithArity<T, Arity>>; | ||
export declare function String<T = string>(descriptor: string, opts: StringOptionTolerateBoolean<T> & { | ||
required: true; | ||
}): CommandOptionReturn<T | boolean>; | ||
export declare function String<T = string>(descriptor: string, opts: StringOptionTolerateBoolean<T>): CommandOptionReturn<T | boolean | undefined>; | ||
export declare function String<T = string>(descriptor: string, initialValue: string | boolean, opts: Omit<StringOptionTolerateBoolean<T>, 'required'>): CommandOptionReturn<T | boolean>; | ||
export declare function String<T = string, Arity extends number = 1>(descriptor: string, initialValue: WithArity<string, Arity>, opts?: Omit<StringOptionNoBoolean<T, Arity>, 'required'>): CommandOptionReturn<WithArity<T, Arity>>; |
@@ -91,5 +91,8 @@ 'use strict'; | ||
function debugMachine(machine, { prefix = `` } = {}) { | ||
debug(`${prefix}Nodes are:`); | ||
for (let t = 0; t < machine.nodes.length; ++t) { | ||
debug(`${prefix} ${t}: ${JSON.stringify(machine.nodes[t])}`); | ||
// Don't iterate unless it's needed | ||
if (constants.DEBUG) { | ||
debug(`${prefix}Nodes are:`); | ||
for (let t = 0; t < machine.nodes.length; ++t) { | ||
debug(`${prefix} ${t}: ${JSON.stringify(machine.nodes[t])}`); | ||
} | ||
} | ||
@@ -96,0 +99,0 @@ } |
{ | ||
"name": "clipanion", | ||
"version": "3.0.0-rc.10", | ||
"version": "3.0.0-rc.11", | ||
"main": "lib/advanced/index", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195568
4632