DefinitelyTyped/webpack-validator/index.d.ts
Andy 8841dfc744 Use index.d.ts only (not foo/foo.d.ts) (#12834)
* Use index.d.ts only (not foo/foo.d.ts)

* Convert more packages

* Remove unnecessary references
2016-11-21 12:58:06 -08:00

28 lines
851 B
TypeScript

// Type definitions for webpack-validator v2.2.6
// Project: https://github.com/js-dxtools/webpack-validator
// Definitions by: Simon Hartcher <https://github.com/deevus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types="webpack" />
declare module "webpack-validator" {
import {Configuration} from "webpack";
interface ValidationOptions {
"no-root-files-node-modules-nameclash"?: boolean;
"loader-enforce-include-or-exclude"?: boolean;
"loader-prefer-include"?: boolean;
}
/**
* Validate your webpack configs with joi
*/
function Validate(config: Configuration): Configuration;
/**
* Validate your webpack configs with joi
*/
function Validate(config: Configuration, options: ValidationOptions): Configuration;
export = Validate;
}