(identifier: B)
| 5227 | * @since 3.10.0 |
| 5228 | */ |
| 5229 | export function brand<B extends string>(identifier: B) { |
| 5230 | return <S extends ConstraintRebuildable>(schema: S): brand<S["Rebuild"], B> => |
| 5231 | make(SchemaAST.brand(schema.ast, identifier), { schema, identifier }) |
| 5232 | } |
| 5233 | |
| 5234 | /** |
| 5235 | * Creates a branded schema from a {@link Brand.Constructor}, applying the |