@cqrsfk/core
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

MVP

Root API

class User extends Root {
  static version = 1.0;
  static type = "User";

  constructor() {}

  @Action({ validater })
  changeAction(name) {

  }

  @Mutation({ event, validater })
  changeMutation(){

  }

  @Changer({event});
  private change(event){

  }

  

}
const domain = new Domain();
domain.reg(User);

const user = await domain.create("User", ["name"] );

await user.changeAction("leo");

Readme

Keywords

none

Package Sidebar

Install

npm i @cqrsfk/core

Weekly Downloads

1

Version

1.0.8

License

ISC

Unpacked Size

140 kB

Total Files

64

Last publish

Collaborators

  • leozale