please add code samples
born2net opened this issue · 10 comments
born2net commented
please add code samples
born2net commented
for example @memoizeAsync
code snippet for usage will be helpful.
thanks!
vlio20 commented
I will add examples in the Readme file in the near future. Meanwhile I suggest you to take examlles from my blog post about this specific decorator: https://link.medium.com/AfVimxI1Tab
Let me know if it is helpful.
born2net commented
or for example @retry({retries: 1, delay: 1})
is erroring on
Error:(179, 5) TS1241: Unable to resolve signature of method decorator when called as an expression.
Type 'TypedPropertyDescriptor<AsyncMethod<any>>' is not assignable to type 'TypedPropertyDescriptor<(e: any) => boolean>'.
Type 'AsyncMethod<any>' is not assignable to type '(e: any) => boolean'.
Type 'Promise<any>' is not assignable to type 'boolean'.
so sample snippets will be helpful.
tx
born2net commented
great will check blog
born2net commented
vlio20 commented
Are you sure that this method returning a promise in all scenarios?
born2net commented
oh... didn't realize need to return a Promise. Ok I will fix no worries, thus a snippet code samples would be helpful as I could see it in the demo. tx again, Sean.
vlio20 commented
Np
…On Mon, Oct 26, 2020, 19:19 AngularNinja.com ***@***.***> wrote:
oh... didn't realize need to return a Promise. Ok I will fix no worries,
thus an snippet code example would be helpful as I could see it in the
demo. tx again, Sean.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#93 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCVBMO4HAKZJ54HDDTHET3SMWVTPANCNFSM4S7TTHTQ>
.