Package Exports
- @martendebruijn/types
- @martendebruijn/types/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@martendebruijn/types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@martendebruijn/types
Common types and type guards I use often.
Get started
npm install @martendebruijn/typesUsage
Type guards
isDefined(x)- Is x defined?
Types
JSONValue- A valid JSON value
Utility
generateError(error)- Make sure an error is actual an error
Releases
For a complete list of releases, please see the changelog.
Contributing
Please do contribute! See the contributing document for how to contribute.
Authors and acknowledgment
Inspired by the Types library made by Mike North and the TypeScript courses he teaches.
- @martendebruijn - Owner
For a full list of contributors, please see the contributors list.
License
MIT license
Copyright (c) 2023 Marten de Bruijn