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 aliased to ps but still.

a: Schema.Number.pipe(Schema.fromKey("A")) // just this
b: Schema.Number.pipe(Schema.propertySignature, Schema.fromKey("A")) // not this
Was this page helpful?