UNPKG

@rbxts/rodux-hooks

Version:

Port of littensy's roact-rodux-hooked for kampf's RoactHooks library.

15 lines (14 loc) 655 B
/// <reference types="rodux" /> import Rodux from "@rbxts/rodux"; import { ActionDecrementValue, ActionIncrementValue, ActionLowercaseText, ActionSetText, ActionSetValue, ActionUppercaseText } from "./story-actions"; declare const DefaultStoryData: { Text: string; Value: number; }; export declare type IStoryData = typeof DefaultStoryData; export declare type StoryActions = ActionDecrementValue | ActionIncrementValue | ActionLowercaseText | ActionSetText | ActionSetValue | ActionUppercaseText; export declare const StoryReducer: Rodux.Reducer<{ Text: string; Value: number; }, StoryActions>; export default StoryReducer;