typescript-utils

🆎 Various constants, utility types, and typed functions for improved TypeScript DX

MIT License

Downloads
311
Stars
1
Committers
2

typescript-utils (@-xun/types)

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

@-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

Usage

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

import type { HttpStatusCode } from '@-xun/types'

const status: HttpStatusCode = 404;

Documentation

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

License

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.

Package Rankings
Top 10.59% on Npmjs.org
Badges
Extracted from project README
Black Lives Matter! Last commit timestamp Open issues Pull requests Uses Semantic Release! FOSSA analysis