prismatic-io / spectral

Prismatic's typescript library for custom components
https://prismatic.io/docs/spectral/custom-component-library
35 stars 2 forks source link

Rename isData/toData to improve clarity on their purpose #19

Closed ryanwersal closed 3 years ago

ryanwersal commented 3 years ago

Recent feedback showed that isData and toData are not very clear over their purpose. I opted to extend the name to be more verbose and hopefully more clear: isBufferDataPayload and toBufferDataPayload. I'm definitely open to alternatives on the naming as well. I left the old names in and marked them as deprecated.