styled-components / polished

A lightweight toolset for writing styles in JavaScript ✨
https://polished.js.org/
MIT License
7.64k stars 209 forks source link

docs(easing): adding a list of valid function names to easing functions documentation #640

Closed gpoole closed 8 months ago

gpoole commented 1 year ago

Some minor documentation updates to:

I also thought it would be nice if the TypeScript type for functionName was narrowed from just a generic string to string literal type of just the valid names (e.g. 'back' | 'circ' | ...), but figured it might be a breaking change and I can see some updates are in the works. Happy to open a PR for that change though if it's useful and not on the roadmap?