项目作者: MeowType

项目描述 :
Typescript void value on runtime
高级语言: TypeScript
项目地址: git://github.com/MeowType/Void.git
创建时间: 2019-03-31T07:00:19Z
项目社区:https://github.com/MeowType/Void

开源协议:MIT License

下载


Void

Typescript void value on runtime

  1. import { Void } from '@meowtype/void'
  2. const x: void = Void
  1. import { Void, isVoid, isVoidNonStrict } from '@meowtype/void'
  2. isVoid(Void)
  3. // true
  4. isVoid(null)
  5. // false
  6. isVoidNonStrict(Void)
  7. // true
  8. isVoidNonStrict(null)
  9. // true






Build

  1. npm i
  2. npm run build