| 673 | loadCursor(cursor.provider, [...cursor.path, segment]) |
| 674 | |
| 675 | const decodeFromCursor = ( |
| 676 | ast: SchemaAST.AST, |
| 677 | decode: (cursor: ConfigCursor) => Effect.Effect<unknown, SchemaIssue.Issue> |
| 678 | ): SchemaAST.AST => |
| 679 | SchemaAST.decodeTo( |
| 680 | SchemaAST.unknown, |
| 681 | ast, |
| 682 | new SchemaTransformation.Transformation( |
| 683 | SchemaGetter.transformEffect((input: unknown) => decode(input as ConfigCursor)), |
| 684 | SchemaGetter.passthrough() |
| 685 | ) |
| 686 | ) |
| 687 | |
| 688 | const isScalarInput = (ast: SchemaAST.AST): boolean => { |
| 689 | switch (ast._tag) { |