Fabian Hiller

Results 1009 comments of Fabian Hiller

Hey đź‘‹ I would love to! Would you be interested in helping out with providing the translation strings?

Do you know a Finnish developer who could help us? Our translations are usually translated by native speaker and double checked by other native speakers.

Done ([X](https://x.com/FabianHiller/status/1967780820644684020), [Bluesky](https://bsky.app/profile/fabianhiller.com/post/3lywcbrwot22d)). Hope someone shows up. 🙏

PR is up and will probably merged next week: https://github.com/fabian-hiller/valibot/pull/1318

I will consider supporting an API like this in the long run: ```ts const FieldSchema = v.variant(['fieldConfig', 'type'], [ AddressFieldSchema, ... ]) ``` Would you be interested in investigating the...

In the meantime you can just write: ```ts const FieldSchema = v.variant('fieldConfig', [ AddressFieldSchema, ... ]) ```

If this is the case, it is a limitation of TypeScript and not Valibot. Can you try defining such a type with pure TypeScript types?

> I suppose there’s no difference between v.variant & v.union in this case, is there @fabian-hiller? I would probably still use `variant` as it may be faster and return better...

@muningis I am very sorry for being so slow to respond. I have almost no time at the moment. I will try to catch up in the next few days.

@vladshcherbin I think your code is not related to this issue or am I wrong? This seems more like a TS inference limitation when using `array.find()`.