feat: add peek and roblox-ts types

This commit is contained in:
littensy 2025-07-02 21:58:55 -07:00
parent d2979ebd4c
commit 708bc55de7
37 changed files with 363 additions and 1234 deletions

View file

@ -1,6 +1,8 @@
local Charm = require("../Charm")
local validate = require("./validate")
local flags = Charm.flags
--- A special symbol that denotes the absence of a value. Used to represent
--- deleted values in patches.
local None = { __none = "__none" }
@ -63,7 +65,7 @@ local function diff(prevState: { [any]: any }, nextState: { [any]: any }, serial
patches = stringifySparseArray(patches)
end
if serialize and Charm.strict.enabled then
if serialize and flags.strict then
for key, value in next, patches do
validate(value, key)
end