Jindong Zhang

Results 8 comments of Jindong Zhang
trafficstars

Is there a work around at current stage except for waiting for the next version of vite?

@craigphicks I don't think there is anything different between `if` and `switch` statements. I guess your code works because there are function overloads which will bypass some checks.

> Here is an additional Info. > > This happens on Chrome Extension DevTools version: [6.0.1-c7c68ef842](https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md#601) and Firefox addon DevTools version: [6.0.0-d66fa02a30](https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md#600). > > But not on Firefox addon DevTools...

Thanks for your explanation. For reference, my use case is similar to case 2 I mentioned above: I will build pipe items dynamically at first, and would like to assemble...

> Can you share the code of someBuilder? It may be possible to make it type safe. Because the data source is dynamic, it's impossible to analyze the number of...

It should be. Actually I have tried it but its type inference result is incomprehensible for me. I'm stuck at writing a passing type test for it.