mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
feat(sade): expose handler (#45177)
This commit is contained in:
parent
b39ec0b981
commit
ccd94f1448
4
types/sade/index.d.ts
vendored
4
types/sade/index.d.ts
vendored
@ -6,14 +6,14 @@
|
||||
|
||||
import * as mri from 'mri';
|
||||
|
||||
type Handler = (...args: any[]) => void;
|
||||
|
||||
/**
|
||||
* Sade is a small but powerful tool for building command-line interface (CLI) applications for Node.js that are fast, responsive, and helpful!
|
||||
* It enables default commands, git-like subcommands, option flags with aliases, default option values with type-casting,
|
||||
* required-vs-optional argument handling, command validation, and automated help text generation!
|
||||
*/
|
||||
declare namespace sade {
|
||||
type Handler = (...args: any[]) => any;
|
||||
|
||||
interface CommandOptions {
|
||||
/**
|
||||
* Optionally define one or more aliases for the current Command.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user