Thank you @bjrmatos ,
But typescript complains:
Type '{ chrome: { marginTop: string; marginLeft: string; }; content: string; engine: string; recipe: string; }' is not assignable to type 'Template'.
Object literal may only specify known properties, and 'chrome' does not exist in type 'Template'.ts(2322)
index.d.ts(61, 9): The expected type comes from property 'template' which is declared here on type 'Request'