0.3.1 • Published 4 years ago

@type-io/core v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@type-io/core

Core package of type-io. Used for:

  • Define data model
  • Decoding/encoding from plain Javascript object to class instance and back to plain object if necessary

Installation

Node:

npm install @type-io/core

Yarn:

yarn add @type-io/core

Built-In

PlainParser

Used to parsing from/to plain object

Supported type:

Instanced TypeInput typeOutput TypeSpecified Type
StringString, Number, Boolean, & Any*String
NumberString, Number, BooleanNumber
BooleanAny**Boolean
DateDate, String, NumberDate

**Note:

*: Any object will be converted via String(x)

**: Any input will be converted via boolean check

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago