Skip to content

savjs/sav-decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published