savjs / sav-decorator

Interface generator with ES7 decorator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sav-decorator

Interface generator with ES7 decorator

Interface Useage

class TestInterface {
  @conf('hello', 'world')
  test () {}
}

@gen({auth: true})
@impl(TestInterface)
  class Test {
  async test () {}
}

Test = {
  name: 'Test',
  props: {auth: true},
  actions: {
    test: {
      name: 'test',
      method: async test () {},
      middleware: [
        ['hello', 'world']
      ]
    }
  }
}

About

Interface generator with ES7 decorator

License:MIT License


Languages

Language:JavaScript 100.0%