import type { ArrayNode } from "./array-node.js"; import type { RecordNode } from "./record-node.js"; import type { StructNode } from "./struct-node.js"; /** * Friendly nodes support plain objects in place of structs. * You can transform them back into a strict node using `normalize`. * * Set `TAllowRecords` to allow records too. Only config schemas want this — outcome data schemas * have no record node, so letting one through would make `normalize` return an invalid node. * * Worth revisiting: we may add record support to outcome data schemas in future, which would * remove the need for this flag. */ export type Friendly = TNode | ArrayNode> | StructNode<{ [key: string]: Friendly; }> | { [key: string]: Friendly; } | (TAllowRecords extends true ? RecordNode> : never); //# sourceMappingURL=friendly.d.ts.map