(tag: string)
| 1022 | return make(compose(this.node, [new CheckNode([SchemaAST.makeFilterByGuard(refinement, annotations)])])) |
| 1023 | } |
| 1024 | tag(tag: string): any { |
| 1025 | const err = Result.fail(new SchemaIssue.InvalidValue({ expected: `${JSON.stringify(tag)} tag` })) |
| 1026 | return make( |
| 1027 | compose( |
| 1028 | this.node, |
| 1029 | primitiveNode( |
| 1030 | "Prism", |
| 1031 | (s) => s._tag === tag ? Result.succeed(s) : err, |
| 1032 | identity |
| 1033 | ) |
| 1034 | ) |
| 1035 | ) |
| 1036 | } |
| 1037 | at(key: PropertyKey, ..._rest: Array<any>): any { |
| 1038 | const err = Result.fail( |
| 1039 | new SchemaIssue.Pointer([key], new SchemaIssue.MissingKey(undefined)) |
nothing calls this directly
no test coverage detected