Skip to content

Commit

Permalink
Merge pull request #331 from haleksandre/fix-typings
Browse files Browse the repository at this point in the history
feat(typings): export ShieldRuleConfig type
  • Loading branch information
Sytten authored Jun 30, 2021
2 parents 606c49e + 909428a commit 6632707
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 6632707

Please sign in to comment.