diff --git a/packages/n4s/src/runtime/enforceEager.ts b/packages/n4s/src/runtime/enforceEager.ts index 3745a879c..31e635eeb 100644 --- a/packages/n4s/src/runtime/enforceEager.ts +++ b/packages/n4s/src/runtime/enforceEager.ts @@ -4,7 +4,7 @@ import { ctx } from 'enforceContext'; import { getRule, RuleValue, Args, RuleBase } from 'runtimeRules'; import { transformResult } from 'transformResult'; -type IRules = n4s.IRules>; +type IRules = n4s.IRules & EnforceEagerReturn>; type TModifiers = { message: (input: string) => EnforceEagerReturn; }; @@ -73,4 +73,4 @@ export default function enforceEager(value: RuleValue): EnforceEagerReturn { } } -export type EnforceEager = (value: RuleValue) => EnforceEagerReturn; +export type EnforceEager = typeof enforceEager;