Skip to content

fix: export ConvertedHtml interface#154

Merged
emmclaughlin merged 1 commit into
mainfrom
export-converted-html-type
Jun 1, 2026
Merged

fix: export ConvertedHtml interface#154
emmclaughlin merged 1 commit into
mainfrom
export-converted-html-type

Conversation

@emmclaughlin

@emmclaughlin emmclaughlin commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Exports the ConvertedHtml interface from src/utils/render.ts so consumers can reference the return shape of render() by name instead of redefining it locally.

Motivation

Resolves #153. A user requested this so they can type their own functions that accept/produce the result of render() without copying the interface into their own codebase.

Notes

  • The shape is already effectively part of the public API via the render() return type, so this just gives it a named, importable handle.
  • No behavior change; no breaking change.
  • The interface only references types already public from mjml-core (MJMLJsonObject, MJMLParseError).

Testing

  • yarn lint — passes
  • yarn build-cjs — passes
  • yarn test — 91/91 passing

Resolves #153. Allows consumers to type their own functions with the
return shape of `render()` instead of redefining the interface in
their own codebase.
@faire-samurai

Copy link
Copy Markdown

🤖 Agent sessions

Updated at 2026-06-01T13:04:03.103Z

@emmclaughlin emmclaughlin marked this pull request as ready for review June 1, 2026 13:05
@cursor cursor Bot changed the title feat: export ConvertedHtml interface fix: export ConvertedHtml interface Jun 1, 2026
@emmclaughlin

Copy link
Copy Markdown
Collaborator Author

/merge

@emmclaughlin emmclaughlin merged commit 0d69185 into main Jun 1, 2026
2 checks passed
@emmclaughlin emmclaughlin deleted the export-converted-html-type branch June 1, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please export interface ConvertedHtml

4 participants