Socket
Book a DemoInstallSign in
Socket

@types/css-modules-require-hook

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/css-modules-require-hook

TypeScript definitions for css-modules-require-hook

ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version
4.0.6
Version published
Weekly downloads
75K
7.02%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/css-modules-require-hook

Summary

This package contains type definitions for css-modules-require-hook (https://github.com/css-modules/css-modules-require-hook).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/css-modules-require-hook.

index.d.ts

declare module "css-modules-require-hook" {
    interface Options {
        /** Helps you to invalidate cache of all require calls. */
        devMode?: boolean | undefined;
        /** Attach the require hook to additional file extensions. */
        extensions?: string | string[] | undefined;
        /** Provides possibility to exclude particular files from processing. */
        ignore?: string | RegExp | ((filepath: string) => boolean) | undefined;
        /** In rare cases you may want to precompile styles, before they will be passed to the PostCSS pipeline. */
        preprocessCss?: Function | undefined;
        /** In rare cases you may want to get compiled styles in runtime, so providing this option helps. */
        processCss?: Function | undefined;
        /** Provides possibility to pass custom options to the LazyResult instance. */
        processorOpts?: Object | undefined;
        /** Camelizes exported class names. */
        camelCase?: boolean | undefined;
        /** Appends custom plugins to the end of the PostCSS pipeline. */
        append?: any[] | undefined;
        /** Prepends custom plugins to the beginning of the PostCSS pipeline. */
        prepend?: any[] | undefined;
        /** Provides the full list of PostCSS plugins to the pipeline. */
        use?: any[] | undefined;
        /** Short alias for the postcss-modules-extract-imports plugin's createImportedName option. */
        createImportedName?: Function | undefined;
        /** Short alias for the postcss-modules-scope plugin's option. */
        generateScopedName?: string | Function | undefined;
        /** Short alias for the generic-names helper option. */
        hashPrefix?: string | undefined;
        /** Short alias for the postcss-modules-local-by-default plugin's option. */
        mode?: string | undefined;
        /** Provides absolute path to the project directory. */
        rootDir?: string | undefined;
    }

    var requireHook: (options?: Options) => void;

    export = requireHook;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Cedric van Putten.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts