forked from ictrobot/esbuild-scss-modules-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
27 lines (27 loc) · 919 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as postcssModules from "postcss-modules";
import * as sass from "sass";
import type * as esbuild from "esbuild";
declare type CssModulesOptions = Parameters<postcssModules>[0];
export declare type PluginOptions = {
inject: boolean;
minify: boolean;
cache: boolean;
localsConvention: CssModulesOptions["localsConvention"];
generateScopedName: CssModulesOptions["generateScopedName"];
scssOptions: sass.Options;
cssCallback?: (css: string, map: {
[className: string]: string;
}) => void;
};
export declare const ScssModulesPlugin: (options?: Partial<PluginOptions>) => esbuild.Plugin;
export default ScssModulesPlugin;
declare module '*.modules.scss' {
interface IClassNames {
[className: string]: string;
}
const classes: IClassNames;
const digest: string;
const css: string;
export default classes;
export { classes, digest, css };
}