Skip to content

Commit

Permalink
Merge pull request #9 from zolplay-cn/cali
Browse files Browse the repository at this point in the history
release(utils): add Nullish type
  • Loading branch information
CaliCastle authored Oct 20, 2022
2 parents cdc6c78 + 9c31a9d commit 7b3dcba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @zolplay/utils

## 1.3.0

### Minor Changes

- Added Nullish type

## 1.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zolplay/utils",
"version": "1.2.0",
"version": "1.3.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export * from './api'
export * from './datetime'
export * from './helpers'

export type Nullable<T> = null | undefined | T
export type Nullish<T> = null | undefined | T
export type Nullable<T> = T | null

0 comments on commit 7b3dcba

Please sign in to comment.