Errors returned by the private validateInput, re-surfaced by create. Named rather than derived: a private member's type is dropped from the .d.ts, so ErrorReturnedBy over it degrades to unknown in consumers.
validateInput
create
.d.ts
ErrorReturnedBy
unknown
Errors returned by the private
validateInput, re-surfaced bycreate. Named rather than derived: a private member's type is dropped from the.d.ts, soErrorReturnedByover it degrades tounknownin consumers.