@types/css-modules-loader-core
TypeScript definitions for css-modules-loader-core
Last updated 2 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/css-modules-loader-core 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/css-modules-loader-core

Summary

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

Details

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

index.d.ts

import { Plugin } from "postcss";

declare namespace Core {
    type Source =
        | string
        | {
            toString(): string;
        };

    type PathFetcher = (
        file: string,
        relativeTo: string,
        depTrace: string,
    ) => void;

    interface ExportTokens {
        [index: string]: string;
    }

    interface Result {
        injectableSource: string;
        exportTokens: ExportTokens;
    }
}

declare class Core {
    static values: Plugin<{}>;
    static localByDefault: Plugin<{}>;
    static extractImports: Plugin<{}>;
    static scope: Plugin<{}>;
    static defaultPlugins: Array<Plugin<{}>>;

    constructor(plugins?: Array<Plugin<any>>);

    load(
        source: Core.Source,
        sourcePath?: string,
        trace?: string,
        pathFetcher?: Core.PathFetcher,
    ): Promise<Core.Result>;
}

export = Core;
export as namespace Core;

Additional Details

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

Credits

These definitions were written by Spencer Miskoviak.

Current Tags

  • 1.1.4                                ...           latest (2 years ago)
  • 1.1.0                                ...           ts3.0 (7 years ago)
  • 1.1.0                                ...           ts3.1 (7 years ago)
  • 1.1.0                                ...           ts3.2 (7 years ago)
  • 1.1.0                                ...           ts3.3 (7 years ago)
  • 1.1.0                                ...           ts3.4 (7 years ago)
  • 1.1.0                                ...           ts3.5 (7 years ago)
  • 1.1.0                                ...           ts3.6 (7 years ago)
  • 1.1.0                                ...           ts3.7 (7 years ago)
  • 1.1.0                                ...           ts3.8 (7 years ago)
  • 1.1.0                                ...           ts3.9 (7 years ago)
  • 1.1.0                                ...           ts4.0 (7 years ago)
  • 1.1.0                                ...           ts4.1 (7 years ago)
  • 1.1.0                                ...           ts4.2 (7 years ago)
  • 1.1.1                                ...           ts4.3 (3 years ago)
  • 1.1.1                                ...           ts4.4 (3 years ago)
  • 1.1.4                                ...           ts4.5 (2 years ago)
  • 1.1.4                                ...           ts4.6 (2 years ago)
  • 1.1.4                                ...           ts4.7 (2 years ago)
  • 1.1.4                                ...           ts4.8 (2 years ago)
  • 1.1.4                                ...           ts4.9 (2 years ago)
  • 1.1.4                                ...           ts5.0 (2 years ago)
  • 1.1.4                                ...           ts5.1 (2 years ago)
  • 1.1.4                                ...           ts5.2 (2 years ago)
  • 1.1.4                                ...           ts5.3 (2 years ago)
  • 1.1.4                                ...           ts5.4 (2 years ago)
  • 1.1.4                                ...           ts5.5 (2 years ago)
  • 1.1.4                                ...           ts5.6 (2 years ago)
  • 1.1.4                                ...           ts5.7 (2 years ago)
  • 1.1.4                                ...           ts5.8 (2 years ago)
  • 1.1.4                                ...           ts5.9 (2 years ago)
  • 1.1.4                                ...           ts6.0 (2 years ago)

5 Versions

  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |