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.
@xunnamius/types: for general TypeScript utilities:
npm install --save-dev @xunnamius/types
@xunnamius/next-types: for next-specific TypeScript utilities:
npm install --save-dev @xunnamius/next-types
@xunnamius/jest-types: for jest-specific TypeScript utilities:
npm install --save-dev @xunnamius/jest-types
You can use this library's exports in your TypeScript projects like so:
import type { HttpStatusCode } from '@xunnamius/types'
const status: HttpStatusCode = 404;
See each package 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.