UNPKG

500 BTypeScriptView Raw
1import type { Config as PostCSSConfig } from "postcss-load-config";
2import type { LoaderContext } from "webpack";
3
4type PostCSSLoaderContext = LoaderContext<PostCSSConfig>;
5
6interface PostCSSLoaderAPI {
7 mode: PostCSSLoaderContext["mode"];
8 file: PostCSSLoaderContext["resourcePath"];
9 webpackLoaderContext: PostCSSLoaderContext;
10 env: PostCSSLoaderContext["mode"];
11 options: PostCSSConfig;
12}
13
14export type PostCSSLoaderOptions =
15 | PostCSSConfig
16 | ((api: PostCSSLoaderAPI) => PostCSSConfig);
17
\No newline at end of file