Skip to content

Xunnamius/typescript-utils

Repository files navigation

Black Lives Matter! Last commit timestamp Open issues Pull requests Uses Semantic Release!

typescript-utils

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.

Install

@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

Usage

You can use this library's exports in your TypeScript projects like so:

import type { HttpStatusCode } from '@xunnamius/types'

const status: HttpStatusCode = 404;

Documentation

See each package for information on the types they make available and further documentation.

License

FOSSA analysis

Contributing and Support

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.