File tree Expand file tree Collapse file tree 3 files changed +446
-26
lines changed Expand file tree Collapse file tree 3 files changed +446
-26
lines changed Original file line number Diff line number Diff line change @@ -245,6 +245,9 @@ export type RulesLogic<AddOps extends AdditionalOperation = never> =
245245 | boolean
246246 | string
247247 | number
248+ | JsonLogic < AddOps > ;
249+
250+ export type JsonLogic < AddOps extends AdditionalOperation = never > =
248251 // Accessing Data - https://jsonlogic.com/operations.html#accessing-data
249252 | JsonLogicVar < AddOps >
250253 | JsonLogicMissing < AddOps >
@@ -301,7 +304,7 @@ export function rm_operation(name: string): void;
301304
302305// These functions are undocumented, but are exported by the real package
303306// so they're typed here for completeness.
304- export function is_logic ( logic : any ) : logic is RulesLogic ;
307+ export function is_logic ( logic : any ) : logic is JsonLogic ;
305308export function truthy ( value : any ) : boolean ;
306309export function get_operator ( logic : Record < string , any > ) : string ;
307310export function get_values ( logic : Record < string , any > ) : any ;
You can’t perform that action at this time.
0 commit comments