mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
44 lines
1.9 KiB
TypeScript
44 lines
1.9 KiB
TypeScript
// Type definitions for css-modules-require-hook 4.0.3
|
|
// Project: https://github.com/css-modules/css-modules-require-hook
|
|
// Definitions by: Cedric van Putten <https://bycedric.com>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare module 'css-modules-require-hook' {
|
|
interface Options {
|
|
/** Helps you to invalidate cache of all require calls. */
|
|
devMode?: boolean;
|
|
/** Attach the require hook to additional file extensions. */
|
|
extensions?: string | string[];
|
|
/** Provides possibility to exclude particular files from processing. */
|
|
ignore?: string | RegExp | ((filepath: string) => boolean);
|
|
/** In rare cases you may want to precompile styles, before they will be passed to the PostCSS pipeline. */
|
|
preprocessCss?: Function;
|
|
/** In rare cases you may want to get compiled styles in runtime, so providing this option helps. */
|
|
processCss?: Function;
|
|
/** Provides possibility to pass custom options to the LazyResult instance. */
|
|
processorOpts?: Object;
|
|
/** Camelizes exported class names. */
|
|
camelCase?: boolean;
|
|
/** Appends custom plugins to the end of the PostCSS pipeline. */
|
|
append?: any[];
|
|
/** Prepends custom plugins to the beginning of the PostCSS pipeline. */
|
|
prepend?: any[];
|
|
/** Provides the full list of PostCSS plugins to the pipeline. */
|
|
use?: any[];
|
|
/** Short alias for the postcss-modules-extract-imports plugin's createImportedName option. */
|
|
createImportedName?: Function;
|
|
/** Short alias for the postcss-modules-scope plugin's option. */
|
|
generateScopedName?: string | Function;
|
|
/** Short alias for the generic-names helper option. */
|
|
hashPrefix?: string;
|
|
/** Short alias for the postcss-modules-local-by-default plugin's option. */
|
|
mode?: string;
|
|
/** Provides absolute path to the project directory. */
|
|
rootDir?: string;
|
|
}
|
|
|
|
var requireHook: (options?: Options) => void;
|
|
|
|
export = requireHook;
|
|
}
|