sanctuary-js / sanctuary-def

Run-time type system for JavaScript
MIT License
294 stars 23 forks source link

remove type namespaces #248

Closed davidchambers closed 5 years ago

davidchambers commented 5 years ago

Namespaces permitted the coexistence of types with the same name defined in different packages. The url parameter, added in #105, provides another way to ensure this. Let's rely on the url parameter to do double duty.

This pull request also tweaks invalidValue to use type constructor rather than type if appropriate.