From 2e5e02c89fe147294e38d1828be7dac33dcbb3ce Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Mon, 15 Mar 2021 21:41:51 +0100 Subject: [PATCH] properly cast return type of Roll.render --- src/module/rolls/roll.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/rolls/roll.ts b/src/module/rolls/roll.ts index 27d4f015..22ec0cd5 100644 --- a/src/module/rolls/roll.ts +++ b/src/module/rolls/roll.ts @@ -39,6 +39,6 @@ export class DS4Roll = Record }; // Render the roll display template - return (renderTemplate(chatOptions.template ?? "", chatData) as unknown) as HTMLElement; // TODO(types): Make this cast unnecessary by fixing upstream + return (renderTemplate(chatOptions.template ?? "", chatData) as unknown) as Promise; // TODO(types): Make this cast unnecessary by fixing upstream } }