Skip to content

Fix generated declaration types#48

Closed
itosa-kazu wants to merge 1 commit into
runarberg:mainfrom
itosa-kazu:codex/fix-declaration-types
Closed

Fix generated declaration types#48
itosa-kazu wants to merge 1 commit into
runarberg:mainfrom
itosa-kazu:codex/fix-declaration-types

Conversation

@itosa-kazu

Copy link
Copy Markdown

Summary

  • point the top-level package types field at the generated declaration file
  • add missing markdown-it and Token typedefs used by the generated Renderer type
  • avoid emitting markdown-it .default references that fail for consumers using @types/markdown-it

Verification

  • npm run check
  • npm test
  • npx eslint src/options.js src/plugin.js src/renderers.js
  • npm pack, install the local tarball into a clean TypeScript project, and run npx tsc --noEmit

The current published package fails the same consumer TypeScript test with missing Token/MarkdownIt names and the markdown-it .default type reference.

@runarberg
runarberg force-pushed the codex/fix-declaration-types branch from 3ace76c to b1f42da Compare June 9, 2026 23:47
@runarberg

Copy link
Copy Markdown
Owner

Closing: I do not accept drive-by PRs from clankers hoping to catch a bounty.

@runarberg runarberg closed this Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants