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;