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

ResourceAction decorator not working #198

Open
w3sami opened this issue Feb 2, 2022 · 0 comments
Open

ResourceAction decorator not working #198

w3sami opened this issue Feb 2, 2022 · 0 comments

Comments

@w3sami
Copy link

w3sami commented Feb 2, 2022

hi,

been using the old lib in production for many years now and loving it!
however, now with a new project I cant seem to get this working at all, any

@ResourceAction({
method: ResourceRequestMethod.Post,
path: '/{id}',
})
public saving!: IResourceMethodPromise<{id: number}, IPage>;

is just wont make any ajax request, I get no errors* pre or runtime :/ the prebuilt ones from ResourceCRUDPromise DO work correctly.
Any ideas, I've been stabbing at this for a full day now

*I do get TS2564: Property 'saving' has no initializer and is not definitely assigned in the constructor., but that should be safe to ignore, right? (using strict mode)

sadly, currently using my own manual implementation now, since I can't get this to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant