Redux-scc custom types
✓ Published0🌍 Public
TTheComfyChair
Last edited Aug 10, 2017
Created on Aug 7, 2017
This example demonstrates how to extend the Redux-scc store with custom data types, specifically validating a `moment` object as an `expiryDate` property. It uses Redux-scc’s `Types.custom` API and `buildStoreChunk` to define a reusable shape. The code provides a custom validator and a validation error message, showing how to enforce type safety on nested store state without additional libraries. The source is a gist by TheComfyChair, and the rendering approach is not shown, focusing purely on type definition logic.
AI-generated description