Work around TS compiler error

This commit is contained in:
Justin Van Patten 2020-08-10 14:57:09 -07:00
parent 2cd0c000bd
commit 7a3ef12134

View file

@ -15,7 +15,7 @@
// tslint:disable
import * as assert from "assert";
import { all, output, Output, unknown } from "../index";
import { all, output, Output, Resource, unknown } from "../index";
import { asyncTest } from "./util";
function test(val: any, expected: any) {
@ -51,7 +51,7 @@ function testResources(val: any, expected: any, resources: TestResource[], allRe
assert.deepStrictEqual(asyncResources, new Set(allResources));
for (const res of syncResources) {
if (!asyncResources.has(<TestResource>res)) {
if (!asyncResources.has(<Resource><any>res)) {
assert.fail(`async resources did not contain: ${(<TestResource><any>res).name}`)
}
}