From 14fe158214e2cd787a214574409563335d6b23d8 Mon Sep 17 00:00:00 2001 From: brinkokevin Date: Mon, 29 Apr 2024 21:48:42 +0200 Subject: [PATCH] fix Dictionary.update type --- src/Dictionary/update.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dictionary/update.lua b/src/Dictionary/update.lua index 4a5ff6b..a1777d9 100644 --- a/src/Dictionary/update.lua +++ b/src/Dictionary/update.lua @@ -14,7 +14,7 @@ end @function update @within Dictionary - @param dictionary {[K]: V} -- The dictionary to update. + @param dictionary {[K]: V?} -- The dictionary to update. @param key K -- The key to update. @param updater? (value: V, key: K) -> U -- The updater function. @param callback? (key: K) -> C -- The callback function. @@ -37,7 +37,7 @@ end ``` ]=] local function update( - dictionary: { [K]: V }, + dictionary: { [K]: V? }, key: K, updater: ((value: V, key: K) -> U)?, callback: ((key: K) -> C)?