sinclairnick / brail

💌 Transactional email that feels different
https://brail.dev
Apache License 2.0
258 stars 6 forks source link

Typescript: Make return type `meta` resemble the `defaultMeta` not meta schema #27

Closed sinclairnick closed 1 year ago

sinclairnick commented 1 year ago

Currently the return type for the html proc is incorrect. Instead of being TMeta it should instead by whatever the provided default meta is.

In fact, meta here should be renamed to defaultMeta for clarity.

sinclairnick commented 1 year ago

Added TDefaultMeta generic type to TemplateDef and return type meta in RenderResult is now defaultMeta.