Skip to content

Commit 5461f5b

Browse files
committed
fix: stabilize generated declarations
1 parent 9a1c86b commit 5461f5b

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export * from './config'
2-
export * from './hooks'
3-
export * from './lint'
4-
export * from './parser'
5-
export * from './rules'
1+
export { config, defaultConfig, getConfig } from './config'
2+
export { installGitHooks, uninstallGitHooks } from './hooks'
3+
export { lintCommitMessage } from './lint'
4+
export { parseCommitMessage } from './parser'
5+
export { rules } from './rules'
66
export * from './types'
7-
export * from './utils'
7+
export { readCommitMessageFromFile } from './utils'

src/lint.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { LintResult, LintRule, RuleConfig, RuleLevel } from './types'
1+
import type { GitLintConfig, LintResult, LintRule, RuleConfig, RuleLevel } from './types'
22
import { rules } from './rules'
33

44
// Default configuration as fallback
5-
const defaultConfig = {
5+
const defaultConfig: GitLintConfig = {
66
verbose: true,
77
rules: {
88
'conventional-commits': 2,
@@ -11,7 +11,7 @@ const defaultConfig = {
1111
'body-leading-blank': 2,
1212
'no-trailing-whitespace': 1,
1313
},
14-
ignores: [] as string[],
14+
ignores: [],
1515
}
1616

1717
// Use default config

0 commit comments

Comments
 (0)