From ccd94f14489ddce30fab445a790c483e30d2cb07 Mon Sep 17 00:00:00 2001 From: Alexandre Breteau Date: Wed, 24 Jun 2020 08:56:27 +0200 Subject: [PATCH] feat(sade): expose handler (#45177) --- types/sade/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/sade/index.d.ts b/types/sade/index.d.ts index ac83538624..413b26b595 100644 --- a/types/sade/index.d.ts +++ b/types/sade/index.d.ts @@ -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.