( getResult: (s: S) => Result.Result<A, SchemaIssue.Issue>, set: (a: A) => S )
| 264 | * @since 4.0.0 |
| 265 | */ |
| 266 | export function makePrism<S, A>( |
| 267 | getResult: (s: S) => Result.Result<A, SchemaIssue.Issue>, |
| 268 | set: (a: A) => S |
| 269 | ): Prism<S, A> { |
| 270 | return make(primitiveNode("Prism", getResult, set)) |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Creates a {@link Prism} from one or more `Schema` validation checks. |