(
annotations: Schema.Annotations.Schema<NoInfer<A>> & {
readonly status?: number | undefined
}
)
| 151 | * @category annotations |
| 152 | */ |
| 153 | export const annotations = <A>( |
| 154 | annotations: Schema.Annotations.Schema<NoInfer<A>> & { |
| 155 | readonly status?: number | undefined |
| 156 | } |
| 157 | ): Schema.Annotations.Schema<A> => { |
| 158 | const result: Record<symbol, unknown> = Struct.omit(annotations, "status") |
| 159 | if (annotations.status !== undefined) { |
| 160 | result[AnnotationStatus] = annotations.status |
| 161 | } |
| 162 | return result |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * @since 1.0.0 |
no test coverage detected