Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow access to ...advices throught function prop #115

Closed
k1r0s opened this issue Aug 21, 2018 · 0 comments
Closed

allow access to ...advices throught function prop #115

k1r0s opened this issue Aug 21, 2018 · 0 comments
Labels

Comments

@k1r0s
Copy link
Owner

k1r0s commented Aug 21, 2018

when building abstractions you may ship your library with:

export const MyDecorator = beforeMethod(meta => {
  ...stuff that you are not supposed to access
});

would be nice that MyDecorator.advices() gives you back an array of advices which where passed to the join point (beforeMethod on the previous example)

this will be usefull for extending packed decorators that use kaop-ts, for example:

const advices = MyDecorator.advices();
export const MyNewDecorator = beforeMethod(...advices, meta => {
  ...new stuff that happends after advices execution
})
@k1r0s k1r0s added the feature label Aug 21, 2018
@k1r0s k1r0s changed the title allow access to ...advices throught callback allow access to ...advices throught function prop Aug 21, 2018
@k1r0s k1r0s closed this as completed in be447f1 Aug 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant