Mjml: Typescript?

Created on 1 Jan 2018  路  6Comments  路  Source: mjmlio/mjml

Just wondering if there's any plans to add a typescript declaration file to this repo (index.d.ts). I ask as (DefinitelyTyped)[https://github.com/DefinitelyTyped/DefinitelyTyped] also doesn't seem to have a declaration for mjml (npm install --save-dev @types/mjml).

Most helpful comment

I just added a basic MJML 4.x type definition to the typescript lib.

All 6 comments

Hi @willdady

Well we don't use Typescript for MJML, so there's no plan to expose typescript definition. I think PR are welcome but we're not confident keep it up to date

I'm closing the issue, but as said, all PR are welcome

I just added a basic MJML 4.x type definition to the typescript lib.

@aahoughton Can you please share the link to find it ?

@aahoughton Can you please share the link to find it ?

https://www.npmjs.com/package/@types/mjml

Hey ! is it possible that putting string for the _inp_ variable is wrong ? it is an object no ? Passing a stringify JSON object does not work.

mjml2html can receive either a string (...) or an actual
object, no need to stringify it.

Was this page helpful?
0 / 5 - 0 ratings