Files
DefinitelyTyped/meow/index.d.ts
Markus Wolf 4d3b205426 Add typings for meow (#13221)
* feat: add typings for meow

* style: use 4 spaces

* chore: add tslint

* updates after review
2016-12-10 07:53:20 -08:00

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;