Last active
February 8, 2019 00:34
-
-
Save ctrlplusb/f7fa256177e90cdba33fcc3bc5dcd0ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Action } from "easy-peasy"; | |
type TodosModel = { | |
items: string[]; | |
add: Action<TodosModel, string>; // 👈 | |
} | |
type NotificationModel = { | |
msg: string; | |
set: Action<NotificationModel, string>; // 👈 | |
} | |
export type StoreModel = { | |
todos: TodosModel; | |
notification: NotificationModel; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment