nice-types
v1.0.1
Published
A collection of nice TypeScript types!
Maintainers
Readme
nice-types
A collection of nice TypeScript types!
Usage
This library lets you use the utility types either by importing or running a side effect to set the types in the global scope so that it can be used anywhere in your codebase.
Use as global value
All global values have the $ prefix.
// In your root entry file
// import module for side effect (makes this available globally)
import "nice-types/global";
// Any file in your codebase without any import
type MyValue = $Nullable<string>Use as module import
import { Nullable } from "nice-types";
type MyValue = Nullable<string>