mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-17 10:12:25 +02:00
refactor: reduce number of leaked anys (#7465)
This commit is contained in:
parent
6e62bba30f
commit
89b0fff128
39 changed files with 121 additions and 89 deletions
|
@ -98,7 +98,7 @@ const OptionsSchema = Joi.object<PluginOptions>({
|
|||
Joi.function(),
|
||||
// Convert boolean values to functions
|
||||
Joi.alternatives().conditional(Joi.boolean(), {
|
||||
then: Joi.custom((val) =>
|
||||
then: Joi.custom((val: boolean) =>
|
||||
val ? DefaultNumberPrefixParser : DisabledNumberPrefixParser,
|
||||
),
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue