Skip to content

ResourceAction decorator not working #198

Open
@w3sami

Description

@w3sami

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions