We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 536a3b9 commit 8a26058Copy full SHA for 8a26058
packages/types/src/mapping.ts
@@ -47,13 +47,13 @@ export type Condition = (
47
value: WalkerOS.DeepPartialEvent | unknown,
48
mapping?: Value,
49
instance?: WalkerOS.Instance,
50
-) => boolean;
+) => WalkerOS.PromiseOrValue<boolean>;
51
52
export type Fn = (
53
54
mapping: Value,
55
options: Options,
56
-) => WalkerOS.Property | unknown;
+) => WalkerOS.PromiseOrValue<WalkerOS.Property | unknown>;
57
58
export type Loop = [Value, Value];
59
@@ -65,4 +65,4 @@ export interface Options {
65
props?: unknown;
66
}
67
68
-export type Validate = (value?: unknown) => boolean;
+export type Validate = (value?: unknown) => WalkerOS.PromiseOrValue<boolean>;
0 commit comments