conventional-changelog-conventionalcommits: DEFAULT_COMMIT_TYPES and format* exports are missing from type declarations

Author: JoshuaKGoldbergCreated Sep 26, 2026Updated Sep 26, 2026

conventional-changelog-conventionalcommits's src/index.js exports DEFAULT_COMMIT_TYPES and the six format* functions from src/format.js. But src/index.d.ts only declares the default createPreset export and the config types.

The options docs suggest mapping over the exported DEFAULT_COMMIT_TYPES, which fails to type-check in TypeScript:

typescript
import createPreset, { DEFAULT_COMMIT_TYPES } from 'conventional-changelog-conventionalcommits'

createPreset({
  types: DEFAULT_COMMIT_TYPES.map(entry => ({ ...entry }))
})
error TS2614: Module '"conventional-changelog-conventionalcommits"' has no exported member 'DEFAULT_COMMIT_TYPES'. Did you mean to use 'import DEFAULT_COMMIT_TYPES from "conventional-changelog-conventionalcommits"' instead?
error TS7006: Parameter 'entry' implicitly has an 'any' type.

The same TS2614 error happens for formatCommitUrl, formatCompareUrl, formatIssueUrl, formatNoteIcon, formatNoteTitle, and formatUserUrl.

I sent #1552 as a draft PR for a fix proposal.

Source: conventional-changelog/conventional-changelog