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> =
245
245
| boolean
246
246
| string
247
247
| number
248
+ | JsonLogic < AddOps > ;
249
+
250
+ export type JsonLogic < AddOps extends AdditionalOperation = never > =
248
251
// Accessing Data - https://jsonlogic.com/operations.html#accessing-data
249
252
| JsonLogicVar < AddOps >
250
253
| JsonLogicMissing < AddOps >
@@ -301,7 +304,7 @@ export function rm_operation(name: string): void;
301
304
302
305
// These functions are undocumented, but are exported by the real package
303
306
// 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 ;
305
308
export function truthy ( value : any ) : boolean ;
306
309
export function get_operator ( logic : Record < string , any > ) : string ;
307
310
export function get_values ( logic : Record < string , any > ) : any ;
You can’t perform that action at this time.
0 commit comments