mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
feat: add peek and roblox-ts types
This commit is contained in:
parent
d2979ebd4c
commit
708bc55de7
37 changed files with 363 additions and 1234 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue