sav-decorator
v1.0.7
Published
Interface generator with ES7 decorator
Downloads
6
Readme
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']
]
}
}
}