(ast: A, annotations: Schema.Annotations.Key<unknown>)
| 4547 | |
| 4548 | /** @internal */ |
| 4549 | export function annotateKey<A extends AST>(ast: A, annotations: Schema.Annotations.Key<unknown>): A { |
| 4550 | return updateContext( |
| 4551 | ast, |
| 4552 | undefined, |
| 4553 | undefined, |
| 4554 | undefined, |
| 4555 | ast.context ? { ...ast.context.annotations, ...annotations } : annotations |
| 4556 | ) |
| 4557 | } |
| 4558 | |
| 4559 | /** @internal */ |
| 4560 | export const optionalKey: <A extends AST>(ast: A) => A = setContextFlag("isOptional") |
nothing calls this directly
no test coverage detected