Gets the literal value from a schema, if it's a literal schema. Works with both Zod v3 and v4. Returns undefined if the schema is not a literal or the value cannot be determined.
Gets the literal value from a schema, if it's a literal schema. Works with both Zod v3 and v4. Returns undefined if the schema is not a literal or the value cannot be determined.