Comparing version 1.8.0 to 1.8.1
@@ -8,8 +8,8 @@ import type * as mri from 'mri'; | ||
declare namespace sade { | ||
export type Handler = (...args: any[]) => any; | ||
export type Value = number | string | boolean | null; | ||
export type Handler<T extends readonly Value[] = Value[]> = (...args: [...T, mri.Argv]) => any; | ||
export interface LazyOutput<T extends any[]> { | ||
export interface LazyOutput { | ||
name: string; | ||
handler: Handler<T>; | ||
handler: Handler; | ||
args: string[]; | ||
@@ -25,3 +25,3 @@ } | ||
option(flag: string, description?: string, value?: Value): Sade; | ||
action<T extends Value[]>(handler: Handler<T>): Sade; | ||
action(handler: Handler): Sade; | ||
describe(text: Arrayable<string>): Sade; | ||
@@ -31,3 +31,3 @@ alias(...names: string[]): Sade; | ||
parse<T extends Value[]>(arr: string[], opts: { lazy: true } & mri.Options): LazyOutput<T>; | ||
parse(arr: string[], opts: { lazy: true } & mri.Options): LazyOutput; | ||
parse(arr: string[], opts?: { lazy?: boolean } & mri.Options): void; | ||
@@ -34,0 +34,0 @@ |
{ | ||
"name": "sade", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "Smooth (CLI) operator 🎶", | ||
@@ -5,0 +5,0 @@ "repository": "lukeed/sade", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
31545