Skip to content

Commit

Permalink
feat(typings): export ShieldRuleConfig type
Browse files Browse the repository at this point in the history
  • Loading branch information
haleksandre committed Jun 30, 2021
1 parent 1865ded commit 909428a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ export const rule = (options?: ShieldRuleOptions) => <
*
*/

type ShieldRuleConfig<TypeName extends string, FieldName extends string> = {
export type ShieldRuleConfig<
TypeName extends string,
FieldName extends string
> = {
type?: TypeName;
name?: string;
cache?: ShieldCache;
Expand Down

0 comments on commit 909428a

Please sign in to comment.