angular-cli/packages/@angular/cli/custom-typings.d.ts
2018-05-15 09:37:54 -04:00

38 lines
971 B
TypeScript

interface IWebpackDevServerConfigurationOptions {
contentBase?: boolean | string | string[];
hot?: boolean;
historyApiFallback?: {[key: string]: any} | boolean;
compress?: boolean;
proxy?: {[key: string]: string};
staticOptions?: any;
quiet?: boolean;
noInfo?: boolean;
lazy?: boolean;
filename?: string;
watchOptions?: {
aggregateTimeout?: number;
poll?: number;
};
publicPath?: string;
headers?: { [key: string]: string };
stats?: { [key: string]: boolean } | string | boolean;
inline?: boolean;
https?: boolean;
key?: string;
cert?: string;
overlay?: boolean | { errors: boolean, warnings: boolean };
public?: string;
disableHostCheck?: boolean;
}
declare module 'yargs-parser' {
const parseOptions: any;
const yargsParser: <T = any>(args: string | string[], options?: parseOptions) => T;
export = yargsParser;
}
declare module 'opn' {
export default function(url: string, options?: any): Promise<any>;
}