Install

Prerequisites

Entity.of is framework agnostic, meaning that it should work with any typescript project that has support for experimentalDecorators enabled.

  • Typescript codebase
  • experimentalDecorator support enabled for the typescript compiler

Add library to your project

via npm

npm install entity-of

via yarn

yarn add entity-of

Setup tsconfig.json

Inside your tsconfig.json file, make sure that you have the following option enabled:

{
  "compilerOptions": {
    "experimentalDecorators": true
  }
}

You’re all set.

Check out Examples to see basic use-cases of Entity.of or Tutorials for advanced usage.