@naturalcycles/nodejs-lib 15.37.2 → 15.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,9 @@ import type { StringSchema } from './string.extensions.js'
5
5
  import { stringExtensions } from './string.extensions.js'
6
6
 
7
7
  export interface ExtendedJoi extends JoiLib.Root {
8
- // eslint-disable-next-line id-blacklist
8
+ // eslint-disable-next-line id-denylist
9
9
  string: <TSchema = string>() => StringSchema<TSchema>
10
- // eslint-disable-next-line id-blacklist
10
+ // eslint-disable-next-line id-denylist
11
11
  number: <TSchema = number>() => NumberSchema<TSchema>
12
12
  }
13
13
 
@@ -45,7 +45,7 @@ const defaultOptions: ValidationOptions = {
45
45
 
46
46
  export function getJoiValidationFunction<T>(
47
47
  schema: AnySchema<T>,
48
- ): ValidationFunction<T, JoiValidationError> {
48
+ ): ValidationFunction<T, T, JoiValidationError> {
49
49
  return (input, opt) => {
50
50
  _assert(!opt?.mutateInput, 'mutateInput=true is not yet supported with Joi')
51
51
  return getValidationResult(input, schema, opt?.inputName)