Comments (10)
Thank you!
from valibot.
I can see that. I'm OK with checkItems
, so go on :D.
from valibot.
Thank you. I saw you have created more Items actions, which is nice :)
from valibot.
I have started to work in this issue.
from valibot.
Nice, thanks for letting me know.
from valibot.
I am still unsure of the correct name. The advantage and difference of this action is that a issue is automatically associated with the item that caused the problem. items
and iterate
do not reflect this in my eyes. What do you think about checkItem
or forEach
? The name checkItem
is very clear and easy to read. forEach
might also work as I plan to add actions for the other iterator methods like sort
and filter
as well.
from valibot.
I ran into another problem. Since we already have a map
schema, I can't add a map
action for transforming arrays due to the name collision. One solution to this problem is to call the map
action forEach
. Another solution might be to add the suffix Item
or Items
to these functions: everyItem
, filterItems
, findItem
, mapItems
, reduceItems
, someItem
. The last solution would also work well with checkItems
.
from valibot.
What about checkEach
? I think it reflects what it does. checkItems
it's a good name as well.
I agree with you when you say that items
or iterate
doesn't reflect what it does.
from valibot.
checkEach
is great, but I really like the Item
and Items
suffixes for the iterator actions. This makes it even clearer and prevents other naming conflicts in the future. If we go this way, checkItems
would make more sense in my eyes.
from valibot.
Valibot v0.33.1 is now available 🎉
from valibot.
Related Issues (20)
- General variant key override HOT 4
- Make sidebar list item foldable on API Reference page on the document HOT 1
- Allowing valibot configuration in Vee-validate HOT 2
- [TypeScript?/Question] Cannot use `SchemaWithPipe` in the `options` argument of `variant()` HOT 1
- Website doesn't work from time to time HOT 3
- transform does not work with fallback if union is also used... HOT 2
- Help with checking if minimum 1 element of the array doesn't have empty string. HOT 6
- How to create dynamic variants with the nested schemas? HOT 1
- [FEATURE] check and checkAsync can accept message (string) in return HOT 2
- v.record numbers as keys HOT 1
- checkAsync with valibotResolver not working HOT 1
- [feat suggestion]: partial/nullish/nullable object with default values HOT 1
- "Cannot read properties of null" when using trim with nullish HOT 4
- algolia search not working HOT 2
- Preserve `@ts-expect-error` directives HOT 7
- feat: Add TransformStream Validation HOT 1
- Add an example for handling ValiError errors HOT 14
- Using variant with a nested key HOT 1
- Add length validators based on the `Intl.Segmenter` API HOT 1
- What should I put inside the pipe HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from valibot.