redux-utilities/flux-standard-action

Adding types with optional properties made required

Open

#109 opened on 2018年5月15日

GitHub で見る
 (4 comments) (0 reactions) (0 assignees)JavaScript (4,744 stars) (154 forks)batch import
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.

コントリビューターガイド

Adding types with optional properties made required · redux-utilities/flux-standard-action#109 | Good First Issue