Skip to content

Dispatchers #5

@atrauzzi

Description

@atrauzzi

Instead of a Dispatchers type/interface, have a constant that is all of the functions combined:

export const Dispatchers = {
    createThing,
    updateThing,
    deleteThing,
};

Then, in the component class declaration, use typeof against the constant in the generic props param!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions