From 909428a6fcc8118ce539477f97361a38132a4510 Mon Sep 17 00:00:00 2001 From: Alexandre Villeneuve Date: Wed, 30 Jun 2021 12:55:14 -0400 Subject: [PATCH] feat(typings): export ShieldRuleConfig type --- src/builders.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/builders.ts b/src/builders.ts index 2de7e7c7..77f6c06b 100644 --- a/src/builders.ts +++ b/src/builders.ts @@ -64,7 +64,10 @@ export const rule = (options?: ShieldRuleOptions) => < * */ -type ShieldRuleConfig = { +export type ShieldRuleConfig< + TypeName extends string, + FieldName extends string +> = { type?: TypeName; name?: string; cache?: ShieldCache;