🆎 Various constants, utility types, and typed functions for improved TypeScript DX
MIT License
This monorepo contains generic utility types and helper functions for use in a variety of TypeScript projects.
Before coming to this package to create new types, ensure your use case is not covered by type-fest, Next.js itself, MongoDB's Node.js driver, or TypeScript itself.
@-xun/types: for general TypeScript utilities:
npm install --save-dev @-xun/types
@-xun/types/next: for next-specific TypeScript utilities:
npm install --save-dev @-xun/types/next
@-xun/types/jest: for jest-specific TypeScript utilities:
npm install --save-dev @-xun/types/jest
You can use this library's exports in your TypeScript projects like so:
import type { HttpStatusCode } from '@-xun/types'
const status: HttpStatusCode = 404;
See the docs for information on the types they make available and further documentation.
New issues and pull requests are always welcome and greatly appreciated! 🤩 Just as well, you can star 🌟 this project to let me know you found it useful! ✊🏿 Thank you!
See CONTRIBUTING.md and SUPPORT.md for more information.