UNPKG

732 BTypeScriptView Raw
1import { IConfig } from '@oclif/config';
2import { HelpBase, HelpOptions } from '.';
3export declare function uniqBy<T>(arr: T[], fn: (cur: T) => any): T[];
4export declare function compact<T>(a: (T | undefined)[]): T[];
5export declare function castArray<T>(input?: T | T[]): T[];
6export declare function sortBy<T>(arr: T[], fn: (i: T) => sort.Types | sort.Types[]): T[];
7export declare namespace sort {
8 type Types = string | number | undefined | boolean;
9}
10export declare function template(context: any): (t: string) => string;
11interface HelpBaseDerived {
12 new (config: IConfig, opts?: Partial<HelpOptions>): HelpBase;
13}
14export declare function getHelpClass(config: IConfig, defaultClass?: string): HelpBaseDerived;
15export {};