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