初始化fy
This commit is contained in:
62
uni_modules/UniDevTools/node_modules/postcss-modules/index.d.ts
generated
vendored
Normal file
62
uni_modules/UniDevTools/node_modules/postcss-modules/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
import type { Plugin } from "postcss";
|
||||
|
||||
declare type GenerateScopedNameFunction = (
|
||||
name: string,
|
||||
filename: string,
|
||||
css: string
|
||||
) => string;
|
||||
|
||||
declare type LocalsConventionFunction = (
|
||||
originalClassName: string,
|
||||
generatedClassName: string,
|
||||
inputFile: string
|
||||
) => string;
|
||||
|
||||
declare class Loader {
|
||||
constructor(root: string, plugins: Plugin[]);
|
||||
|
||||
fetch(
|
||||
file: string,
|
||||
relativeTo: string,
|
||||
depTrace: string
|
||||
): Promise<{ [key: string]: string }>;
|
||||
|
||||
finalSource?: string | undefined;
|
||||
}
|
||||
|
||||
declare interface Options {
|
||||
getJSON?(
|
||||
cssFilename: string,
|
||||
json: { [name: string]: string },
|
||||
outputFilename?: string
|
||||
): void;
|
||||
|
||||
localsConvention?:
|
||||
| "camelCase"
|
||||
| "camelCaseOnly"
|
||||
| "dashes"
|
||||
| "dashesOnly"
|
||||
| LocalsConventionFunction;
|
||||
|
||||
scopeBehaviour?: "global" | "local";
|
||||
globalModulePaths?: RegExp[];
|
||||
|
||||
generateScopedName?: string | GenerateScopedNameFunction;
|
||||
|
||||
hashPrefix?: string;
|
||||
exportGlobals?: boolean;
|
||||
root?: string;
|
||||
|
||||
Loader?: typeof Loader;
|
||||
|
||||
resolve?: (file: string) => string | Promise<string>;
|
||||
}
|
||||
|
||||
declare interface PostcssModulesPlugin {
|
||||
(options: Options): Plugin;
|
||||
postcss: true;
|
||||
}
|
||||
|
||||
declare const PostcssModulesPlugin: PostcssModulesPlugin;
|
||||
|
||||
export = PostcssModulesPlugin;
|
||||
Reference in New Issue
Block a user