© 2026 Hedgehog Software, LLC
const func = <T extends { id: string }>(schema: S.Schema<T>) => schema;
S.struct({ id: S.string })
const res = func(S.struct({ id: S.string })); // compile
const res2 = func(S.struct({ id: S.string.pipe(S.brand('Id')) })); // does not compile
Type '{ readonly id: string; }' is not assignable to type '{ readonly id: string & Brand<"Id">; }'.