mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 04:00:33 +08:00
* feat: add typings for meow * style: use 4 spaces * chore: add tslint * updates after review
31 lines
811 B
TypeScript
31 lines
811 B
TypeScript
// Type definitions for meow 3.6
|
|
// Project: https://github.com/sindresorhus/meow
|
|
// Definitions by: KnisterPeter <https://github.com/KnisterPeter>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as minimist from 'minimist';
|
|
|
|
declare function meow(options: string | string[] | meow.Options, minimistOptions?: minimist.Opts): meow.Result;
|
|
declare namespace meow {
|
|
|
|
export interface Options {
|
|
description?: string | boolean;
|
|
help?: string | boolean;
|
|
version?: string | boolean;
|
|
pkg?: any;
|
|
argv?: string[];
|
|
inferType?: boolean;
|
|
}
|
|
|
|
export interface Result {
|
|
input: string[];
|
|
flags: { [name: string]: any };
|
|
pkg: any;
|
|
help: string;
|
|
showHelp(code: number): void;
|
|
}
|
|
|
|
}
|
|
|
|
export = meow;
|