Currently the specification of a type Foo has the flow type Node<Foo>. I think Node is a bad name for two reasons:
- I have no intuition why this is called
Node. (I suspect it's called Node because of some internal implementation detail, but I might be wrong.)
flow has a built-in type of the same name (https://flow.org/en/docs/react/types/#toc-react-node). So if I'm trying to use Node from validated but forget to import it, I don't get a helpful error message that Node is not in scope, but something confusing. (At least that's what I think happens.)
Could we consider renaming that type?
(To clarify: I'm talking about renaming the type that validated exposes. I don't care about the internals that much.)
We could rename it to Spec, Specification, Schema or something else. I'd be willing to create a PR for this.
Currently the specification of a type
Foohas the flow typeNode<Foo>. I thinkNodeis a bad name for two reasons:Node. (I suspect it's calledNodebecause of some internal implementation detail, but I might be wrong.)flowhas a built-in type of the same name (https://flow.org/en/docs/react/types/#toc-react-node). So if I'm trying to useNodefromvalidatedbut forget to import it, I don't get a helpful error message thatNodeis not in scope, but something confusing. (At least that's what I think happens.)Could we consider renaming that type?
(To clarify: I'm talking about renaming the type that
validatedexposes. I don't care about the internals that much.)We could rename it to
Spec,Specification,Schemaor something else. I'd be willing to create a PR for this.