Skip to content

Commit

Permalink
types(n4s): allow chaining message after rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Oct 25, 2023
1 parent 602e58e commit e2aca0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/n4s/src/runtime/enforceEager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ctx } from 'enforceContext';
import { getRule, RuleValue, Args, RuleBase } from 'runtimeRules';
import { transformResult } from 'transformResult';

type IRules = n4s.IRules<Record<string, any>>;
type IRules = n4s.IRules<Record<string, any> & EnforceEagerReturn>;
type TModifiers = {
message: (input: string) => EnforceEagerReturn;
};
Expand Down Expand Up @@ -73,4 +73,4 @@ export default function enforceEager(value: RuleValue): EnforceEagerReturn {
}
}

export type EnforceEager = (value: RuleValue) => EnforceEagerReturn;
export type EnforceEager = typeof enforceEager;

2 comments on commit e2aca0c

@vercel
Copy link

@vercel vercel bot commented on e2aca0c Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest – ./website

vest-ealush.vercel.app
vest-git-latest-ealush.vercel.app
www.vestjs.dev
vest.vercel.app
vestjs.dev

@vercel
Copy link

@vercel vercel bot commented on e2aca0c Oct 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest-next – ./website

vest-next-ealush.vercel.app
vest-website.vercel.app
vest-next-git-latest-ealush.vercel.app
vest-next.vercel.app

Please sign in to comment.