(
path: SchemaPath<TValue, SchemaPathRules.Supported, TPathKind>,
configOrLogic:
| {when: NoInfer<LogicFn<TValue, boolean, TPathKind>>}
| NoInfer<LogicFn<TValue, boolean, TPathKind>>,
)
| 47 | ): void; |
| 48 | |
| 49 | export function hidden<TValue, TPathKind extends PathKind = PathKind.Root>( |
| 50 | path: SchemaPath<TValue, SchemaPathRules.Supported, TPathKind>, |
| 51 | configOrLogic: |
| 52 | | {when: NoInfer<LogicFn<TValue, boolean, TPathKind>>} |
| 53 | | NoInfer<LogicFn<TValue, boolean, TPathKind>>, |
| 54 | ): void { |
| 55 | assertPathIsCurrent(path); |
| 56 | |
| 57 | const pathNode = FieldPathNode.unwrapFieldPath(path); |
| 58 | |
| 59 | const logic = typeof configOrLogic === 'function' ? configOrLogic : configOrLogic.when; |
| 60 | |
| 61 | pathNode.builder.addHiddenRule(logic); |
| 62 | } |
no test coverage detected
searching dependent graphs…