type and psil updates

This commit is contained in:
Mikayla
2024-12-10 03:43:23 +00:00
parent 0544587d84
commit e54ecf43ed
3 changed files with 63 additions and 1 deletions

View File

@@ -74,6 +74,13 @@ function psil.create()
end
end
-- get the currently stored value for a key or nil if not set
---@param key string data key
---@return any
function public.get(key)
if ic[key] ~= nil then return ic[key].value else return nil end
end
-- clear the contents of the interconnect
function public.purge() ic = {} end