( options: TOptions, )
| 10 | ValidatorAdapter<TOptions['inferIn'], TOptions['infer']> |
| 11 | |
| 12 | export const arkTypeValidator = <TOptions extends ArkTypeLike>( |
| 13 | options: TOptions, |
| 14 | ): ArkTypeValidatorAdapter<TOptions> => { |
| 15 | return { |
| 16 | types: { |
| 17 | input: options.inferIn, |
| 18 | output: options.infer, |
| 19 | }, |
| 20 | parse: (input) => options.assert(input), |
| 21 | } |
| 22 | } |
no test coverage detected