Files
DefinitelyTyped/types/meow/index.d.ts
2017-03-24 14:27:52 -07:00

29 lines
796 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 {
interface Options {
description?: string | boolean;
help?: string | boolean;
version?: string | boolean;
pkg?: any;
argv?: string[];
inferType?: boolean;
}
interface Result {
input: string[];
flags: { [name: string]: any };
pkg: any;
help: string;
showHelp(code?: number): void;
}
}
export = meow;