Skip to content

Commit 2146378

Browse files
committed
chore: updated types
1 parent 8056c25 commit 2146378

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/types.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Plugin } from '@commitlint/types';
1+
import type { AnyRuleConfig, Plugin, RuleConfigQuality } from '@commitlint/types';
22

33
export type RemoveIndex<T> = {
44
[K in keyof T as symbol extends K ? never : string extends K ? never : number extends K ? never : K]: T[K];
@@ -16,4 +16,8 @@ export const properties = ['body', 'footer', 'header', 'scope', 'subject', 'type
1616

1717
export type CommitProperty = (typeof properties)[number];
1818

19-
export type PluginRuleEntry = [ruleName: `cspell/${CommitProperty}`, ruleFn: CommitLintRule];
19+
export type CspellRuleName = `cspell/${CommitProperty}`;
20+
21+
export type PluginRulesConfig = Record<CspellRuleName, AnyRuleConfig<RuleConfigQuality.User>>;
22+
23+
export type PluginRuleEntry = [ruleName: CspellRuleName, ruleFn: CommitLintRule];

0 commit comments

Comments
 (0)