1.0.7 • Published 7 years ago

sav-decorator v1.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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']
      ]
    }
  }
}