mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 18:07:00 +02:00
chore(v2): fix several lint warnings, add missing types, cleanup (#3844)
* fix several lint warnings, add missing types, cleanup * fix EnumChangefreq issue * better utilization of EnumChangefreq type * update test snapshot
This commit is contained in:
parent
139b668737
commit
ad31facb32
49 changed files with 228 additions and 171 deletions
5
packages/docusaurus-types/src/index.d.ts
vendored
5
packages/docusaurus-types/src/index.d.ts
vendored
|
@ -336,7 +336,10 @@ export interface ThemeConfigValidationContext<T, E extends Error = Error> {
|
|||
|
||||
// TODO we should use a Joi type here
|
||||
export interface ValidationSchema<T> {
|
||||
validate(options: Partial<T>, opt: object): ValidationResult<T>;
|
||||
validate(
|
||||
options: Partial<T>,
|
||||
opt: Record<string, unknown>,
|
||||
): ValidationResult<T>;
|
||||
unknown(): ValidationSchema<T>;
|
||||
append(data: any): ValidationSchema<T>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue