-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: exported return types of 'stylex.types.*' fns #867
base: main
Are you sure you want to change the base?
Conversation
workflow: benchmarks/sizeComparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.
|
I think this is a better organization in terms of usage with This is also kinda awkward, but maybe |
I don't know if it's worth renaming the existing public APIs such as
|
Yeah documentation is probably the best way to disambiguate this. |
2e860bb
to
72ab4b3
Compare
There was no clean way to embed types under This raises the question, is that the right name? Should it be |
Will the usage look like this?
|
What changed / motivation ?
Fixes #857
New types are exported such as
stylex.Color
andstylex.Length
.These are the return types of the
stylex.types.*
function. So, for example,stylex.types.color("red")
is of typestylex.Color<string>
Question
Should the types be under
stylex.types
instead?stylex.types.color("red")
would be of typestylex.types.Color<string>