# 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.

```typescript
// 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
```typescript
import { Nullable } from "nice-types";

type MyValue = Nullable<string>
```