amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.87k stars 543 forks source link

Incorrect return types of the function sortByRefernce in formatHelpers #918

Closed kwittkowsky closed 1 year ago

kwittkowsky commented 1 year ago

Hello everyone,

I found that the sortByRefernce function in formatHelpers has incorrect return types defined in the TypeScript definition file. This can cause errors in type-aware IDEs.

The function should return a sorting function.