Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
ersachin3112 committed Jul 2, 2024
1 parent 1fbc343 commit 1e7e19a
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,19 @@ type InternalPluginOptions<T> = BasePluginOptions & {
? { [P in keyof T]: Minimizer<T[P]> }
: Minimizer<T>;
};
type DefinedDefaultMinimizerAndOptions<T> =
T extends import("html-minifier-terser").Options
type DefinedDefaultMinimizerAndOptions<T> = T extends HtmlMinifierTerserOptions
? {
minify?: MinimizerImplementation<T> | undefined;
minimizerOptions?: MinimizerOptions<T> | undefined;
}
: T extends any[]
? {
minify?: MinimizerImplementation<T> | undefined;
minimizerOptions?: MinimizerOptions<T> | undefined;
minify: { [P in keyof T]: MinimizerImplementation<T[P]> };
minimizerOptions?:
| { [P in keyof T]?: MinimizerOptions<T[P]> | undefined }
| undefined;
}
: T extends any[]
? {
minify: { [P in keyof T]: MinimizerImplementation<T[P]> };
minimizerOptions?:
| { [P_1 in keyof T]?: MinimizerOptions<T[P_1]> }
| undefined;
}
: {
minify: MinimizerImplementation<T>;
minimizerOptions?: MinimizerOptions<T> | undefined;
};
: {
minify: MinimizerImplementation<T>;
minimizerOptions?: MinimizerOptions<T> | undefined;
};

0 comments on commit 1e7e19a

Please sign in to comment.