lightningcss icon indicating copy to clipboard operation
lightningcss copied to clipboard

Types: Add method overload for transform & bundle functions

Open ArnaudBarre opened this issue 3 years ago • 2 comments

supersede #91

Here is a simpler version for functions overloads (like esbuild) that seems to be a valid flow syntax (But I'm not sure it would provide as much type information than TS).

I'm using | undefined because it very uncommon to use void in that case and creates false positive with eslint rules that uses type information.

ArnaudBarre avatar Jun 13 '22 12:06 ArnaudBarre

Does not appear to work with flow.

devongovett avatar Jul 07 '22 16:07 devongovett

What do you think about committing the current version of flow types, to allow TS types to evolve without the need for a script to translate them into flow types?

ArnaudBarre avatar Jul 08 '22 08:07 ArnaudBarre