Skip to content

chore: update dependencies to latest version #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: update types
  • Loading branch information
ersachin3112 committed Jan 4, 2024
commit 30f482423faf7d7792fc56bffb80e2ef9e6b0e66
40 changes: 20 additions & 20 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,26 +108,6 @@ declare namespace CssMinimizerPlugin {
InternalPluginOptions,
};
}
type CssNanoOptionsExtended = CssNanoOptions & {
processorOptions?: ProcessOptionsExtender;
};
type Compiler = import("webpack").Compiler;
type BasePluginOptions = {
test?: Rule | undefined;
include?: Rule | undefined;
exclude?: Rule | undefined;
warningsFilter?: WarningsFilter | undefined;
parallel?: Parallel;
};
type DefinedDefaultMinimizerAndOptions<T> = T extends CssNanoOptionsExtended
? {
minify?: MinimizerImplementation<T> | undefined;
minimizerOptions?: MinimizerOptions<T> | undefined;
}
: {
minify: MinimizerImplementation<T>;
minimizerOptions?: MinimizerOptions<T> | undefined;
};
import { cssnanoMinify } from "./utils";
import { cssoMinify } from "./utils";
import { cleanCssMinify } from "./utils";
Expand All @@ -136,6 +116,7 @@ import { parcelCssMinify } from "./utils";
import { lightningCssMinify } from "./utils";
import { swcMinify } from "./utils";
type Schema = import("schema-utils/declarations/validate").Schema;
type Compiler = import("webpack").Compiler;
type Compilation = import("webpack").Compilation;
type WebpackError = import("webpack").WebpackError;
type JestWorker = import("jest-worker").Worker;
Expand Down Expand Up @@ -219,6 +200,13 @@ type WarningsFilter = (
file: string,
source?: string
) => boolean;
type BasePluginOptions = {
test?: Rule | undefined;
include?: Rule | undefined;
exclude?: Rule | undefined;
warningsFilter?: WarningsFilter | undefined;
parallel?: Parallel;
};
type MinimizerWorker<T> = import("jest-worker").Worker & {
transform: (options: string) => InternalResult;
minify: (options: InternalOptions<T>) => InternalResult;
Expand All @@ -232,6 +220,18 @@ type ProcessOptionsExtender =
stringifier?: string | Syntax | Stringifier;
syntax?: string | Syntax;
};
type CssNanoOptionsExtended = CssNanoOptions & {
processorOptions?: ProcessOptionsExtender;
};
type DefinedDefaultMinimizerAndOptions<T> = T extends CssNanoOptionsExtended
? {
minify?: MinimizerImplementation<T> | undefined;
minimizerOptions?: MinimizerOptions<T> | undefined;
}
: {
minify: MinimizerImplementation<T>;
minimizerOptions?: MinimizerOptions<T> | undefined;
};
type InternalPluginOptions<T> = BasePluginOptions & {
minimizer: {
implementation: MinimizerImplementation<T>;
Expand Down