type TenFromSelf = Brand.Branded<number, 'TenFromSelf'>;
const unsafeFromNumber = Brand.nominal<TenFromSelf>();
const TenFromSelf: Schema.Schema<TenFromSelf> = Schema.declare((input: unknown): input is TenFromSelf => input === 10);
console.log(pipe(5, unsafeFromNumber, Schema.decodeEither(TenFromSelf), Either.isRight));
type TenFromSelf = Brand.Branded<number, 'TenFromSelf'>;
const unsafeFromNumber = Brand.nominal<TenFromSelf>();
const TenFromSelf: Schema.Schema<TenFromSelf> = Schema.declare((input: unknown): input is TenFromSelf => input === 10);
console.log(pipe(5, unsafeFromNumber, Schema.decodeEither(TenFromSelf), Either.isRight));