mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 00:09:48 +02:00
refactor: remove a lot of implicit anys (#7468)
This commit is contained in:
parent
0c8e57de67
commit
3666a2ede5
23 changed files with 148 additions and 163 deletions
20
packages/docusaurus-types/src/index.d.ts
vendored
20
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -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> = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue