mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
feat: add trigger(), refactor source
This commit is contained in:
parent
fdc598f6e6
commit
898fbdba29
21 changed files with 1119 additions and 1039 deletions
|
|
@ -3,7 +3,7 @@ local config = require("./config")
|
|||
local types = require("./types")
|
||||
local validate = require("./validate")
|
||||
|
||||
local globals = Charm.globals
|
||||
local flags = Charm.flags
|
||||
|
||||
export type None = types.None
|
||||
|
||||
|
|
@ -79,7 +79,7 @@ local function diff(currentState: any, nextState: any): any
|
|||
patches = stringifySparseArray(patches)
|
||||
end
|
||||
|
||||
if globals.strict and config.validatePatches then
|
||||
if flags.strict and config.validatePatches then
|
||||
validate(patches)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue