mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Use index.d.ts only (not foo/foo.d.ts) * Convert more packages * Remove unnecessary references
28 lines
851 B
TypeScript
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;
|
|
}
|