Enhancing Schema.fromKey for Better Developer Experience
Could fns that map property signatures like Schema.fromKey etc be updated to accept a Schema as well as an existing instance of a property signature and create the property signature on the fly? It would be a lot nicer dx wise than having to convert it first. I have
Schema.propertySignature
Schema.propertySignature
aliased to
ps
ps
but still.
a: Schema.Number.pipe(Schema.fromKey("A")) // just thisb: Schema.Number.pipe(Schema.propertySignature, Schema.fromKey("A")) // not this
a: Schema.Number.pipe(Schema.fromKey("A")) // just thisb: Schema.Number.pipe(Schema.propertySignature, Schema.fromKey("A")) // not this