Skip to content

Commit

Permalink
update remove param type
Browse files Browse the repository at this point in the history
  • Loading branch information
dig1t committed Jun 15, 2024
1 parent fbafc71 commit 6acce22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/State.luau
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ end
@within State
@method remove
@param path string -- The path to the value to remove
@param path string | number -- The path to the value to remove
]=]
function State.remove(self: StateType, path: string)
function State.remove(self: StateType, path: string | number)
local prevState = Util.extend({}, self._context or {}) -- Create a local copy
local treePath = Util.split(path, ".", true)
local treePath = Util.split(tostring(path), ".", true)
local res = self._context

if not res then
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.6
1.4.7

0 comments on commit 6acce22

Please sign in to comment.