refactor: remove a lot of implicit anys (#7468)

This commit is contained in:
Joshua Chen 2022-05-23 15:40:53 +08:00 committed by GitHub
parent 0c8e57de67
commit 3666a2ede5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 148 additions and 163 deletions

View file

@ -480,19 +480,19 @@ export type HtmlTags = string | HtmlTagObject | (string | HtmlTagObject)[];
export type ValidationSchema<T> = Joi.ObjectSchema<T>;
export type Validate<T, U> = (
validationSchema: ValidationSchema<U>,
options: T,
) => U;
export type Validate<In, Out> = (
validationSchema: ValidationSchema<Out>,
options: In,
) => Out;
export type OptionValidationContext<T, U> = {
validate: Validate<T, U>;
options: T;
export type OptionValidationContext<In, Out> = {
validate: Validate<In, Out>;
options: In;
};
export type ThemeConfigValidationContext<T> = {
validate: Validate<T, T>;
themeConfig: Partial<T>;
export type ThemeConfigValidationContext<In, Out = In> = {
validate: Validate<In, Out>;
themeConfig: In;
};
export type Plugin<Content = unknown> = {