Skip to content

Commit

Permalink
fix(types): change default State generic to be any
Browse files Browse the repository at this point in the history
  • Loading branch information
littensy committed Jun 27, 2023
1 parent 520601d commit e901817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
be used to modify the state. The state is immmutable, so dispatchers return
a new state object.
]=]
export type Producer<State = {}, Dispatchers = { [string]: (...any) -> State }> = Dispatchers & {
export type Producer<State = any, Dispatchers = { [string]: (...any) -> State }> = Dispatchers & {
--[=[
Returns the current state of the producer. Receives an optional selector
function that can be used to select a subset of the state.
Expand Down

0 comments on commit e901817

Please sign in to comment.