Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 511 Bytes

File metadata and controls

17 lines (10 loc) · 511 Bytes

Type system

Built-in types

Built-in types are defined in Type.js:

  • Boolean: One of: truefalse|yes|no|on|off
  • Number: A numerical value
  • Semver: A SemVer version, parseable by node-semver
  • String: A plain-old string (like this one!)

Custom type definition

If you need to define a custom type you can use the static .define method of Type:

// TODO example