redux-utilities/flux-standard-action
GitHub で見るAdding types with optional properties made required
Open
#109 opened on 2018年5月15日
enhancementhelp wanted
説明
Properties payload, error, and meta are all optional properties according to documentation. However I believe there are cases where actions may need to make these properties required ( such as actions based around a text search ). Adding interfaces such as those suggested by @dsanders1234 in a previous issue about these options not being correctly typed as optional strikes me as a good approach, and I'm thinking of doing something similar as a workaround. The standard FluxStandardAction could remain in place while those additional versions could be used as needed.