Skip to content

Commit 9c8b0f3

Browse files
fix: types
1 parent cfec8cd commit 9c8b0f3

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ declare namespace CssMinimizerPlugin {
6868
cssoMinify,
6969
cleanCssMinify,
7070
esbuildMinify,
71+
parcelCssMinify,
7172
Schema,
7273
Compiler,
7374
Compilation,
@@ -128,6 +129,7 @@ import { cssnanoMinify } from "./utils";
128129
import { cssoMinify } from "./utils";
129130
import { cleanCssMinify } from "./utils";
130131
import { esbuildMinify } from "./utils";
132+
import { parcelCssMinify } from "./utils";
131133
type Schema = import("schema-utils/declarations/validate").Schema;
132134
type Compilation = import("webpack").Compilation;
133135
type WebpackError = import("webpack").WebpackError;

types/utils.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,14 @@ export function esbuildMinify(
6262
sourceMap: RawSourceMap | undefined,
6363
minimizerOptions: CustomOptions
6464
): Promise<MinimizedResult>;
65+
/**
66+
* @param {Input} input
67+
* @param {RawSourceMap | undefined} sourceMap
68+
* @param {CustomOptions} minimizerOptions
69+
* @return {Promise<MinimizedResult>}
70+
*/
71+
export function parcelCssMinify(
72+
input: Input,
73+
sourceMap: RawSourceMap | undefined,
74+
minimizerOptions: CustomOptions
75+
): Promise<MinimizedResult>;

0 commit comments

Comments
 (0)