ice-lab / icestore

🌲 Simple and friendly state for React
MIT License
397 stars 35 forks source link

Feature: How should I set the state type with null initial value? #148

Open laolaolulu opened 2 years ago

laolaolulu commented 2 years ago

Problem Description

The initial value of state is null, and the type is user

Proposed Solution

Alternatives Considered

Additional Information

interface User { id: number; name: string; } export default { state: undefined, }