Closed ksamirdev closed 3 months ago
Thank you for your feedback! Is it because of the underscore? If so, note that there are a few more schemas with the underscore suffix. nil
is not part of JavaScript and TypeScript. That's why I used null_
instead.
I think It will also valid if its in uppercase, NULL
That's true but that we have a mix of lowercase and uppercase names for similar things. I prefer the underscore suffix in this case.
But what we can do is to add the alias export export { null_ as null };
to the end of the null.ts
file. Using a wildcard import you can write v.null()
this way. It only does not work for direct imports.
The only confusing thing might be that VS Code recommends both v.null
and v.null_
when typing the function.
I would like to propose using
nil
as a replacement fornull_
for primitive values. This change would provide better clarity and readability.