DefinitelyTyped/types/dargs/index.d.ts
2017-08-14 10:13:00 -07:00

21 lines
645 B
TypeScript

// Type definitions for dargs 5.1
// Project: https://github.com/sindresorhus/dargs#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export = dargs;
declare function dargs(input: object, options?: dargs.Options): string[];
declare namespace dargs {
interface Options {
excludes?: ReadonlyArray<string | RegExp>;
includes?: ReadonlyArray<string | RegExp>;
aliases?: { [key: string]: string };
useEquals?: boolean;
ignoreFalse?: boolean;
allowCamelCase?: boolean;
}
}