-- Compiled with roblox-ts v1.3.2 local TS = _G[script] local Rodux = TS.import(script, TS.getModule(script, "@rbxts", "rodux").src) local DefaultStoryData = { Text = "", Value = 0, } local StoryReducer = Rodux.createReducer(DefaultStoryData, { DecrementValue = function(state, _) local newState = table.clone(state) newState.Value -= 1 return newState end, IncrementValue = function(state, _) local newState = table.clone(state) newState.Value += 1 return newState end, SetText = function(state, action) local newState = table.clone(state) newState.Text = action.Text return newState end, SetValue = function(state, action) local newState = table.clone(state) newState.Value = action.Value return newState end, }) local default = StoryReducer return { StoryReducer = StoryReducer, default = default, }