piotrwitek / utility-types

Collection of utility types, complementing TypeScript built-in mapped types and aliases (think "lodash" for static types).
MIT License
5.54k stars 230 forks source link

add "Nullish" type alias #152

Closed zhirzh closed 4 years ago

zhirzh commented 4 years ago

Description

Introduced in TS 3.7 with nullish coalescing operator (see here)

Checklist

For new features:

piotrwitek commented 4 years ago

Hey @zhirzh, big thanks for the awesome job, I really love it! 

Build i failing because you have to format your code with prettier, it is in the log, you can easily fix it using command: npm run prettier:fix

Could you please do it then I can merge it and publish new version to npm.

Thanks for help!