Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 355 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 355 Bytes

Schema Concept

The schema is an object responsible to map the attributes Structure should handle, it is the parameter of the attributes function.

attributes({
  name: String,
  age: Number
})(class User { });

There are two ways to declare an attribute of the schema, the shorthand type descriptor and the complete type descriptor.