properly cast return type of Roll.render

This commit is contained in:
Johannes Loher 2021-03-15 21:41:51 +01:00
parent f3b6ed4b7f
commit 2e5e02c89f

View file

@ -39,6 +39,6 @@ export class DS4Roll<D extends Record<string, unknown> = Record<string, unknown>
};
// 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<HTMLElement>; // TODO(types): Make this cast unnecessary by fixing upstream
}
}