mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 06:50:36 +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
|
@ -6,9 +6,13 @@
|
|||
*/
|
||||
|
||||
import {validateThemeConfig, DEFAULT_CONFIG} from '../validateThemeConfig';
|
||||
import type {Joi} from '@docusaurus/utils-validation';
|
||||
|
||||
function testValidateThemeConfig(themeConfig) {
|
||||
function validate(schema, cfg) {
|
||||
function testValidateThemeConfig(themeConfig: {[key: string]: unknown}) {
|
||||
function validate(
|
||||
schema: Joi.ObjectSchema<{[key: string]: unknown}>,
|
||||
cfg: {[key: string]: unknown},
|
||||
) {
|
||||
const {value, error} = schema.validate(cfg, {
|
||||
convert: false,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue