Resolve Duplicate Property Signature in Schema without Transformation
how to achieve this in schema w/o transformation?
I get an error
I get an error
const _Rarity = S.Struct({
name: S.String,
color: ColorSchema,
});
S.Struct({
rarity: _Rarity.pipe(S.pluck("name")),
color: S.propertySignature(_Rarity.pipe(S.pluck("color"))).pipe(S.fromKey("rarity")),
})error: Uncaught (in promise) Error: Duplicate property signature