pulumi/tests/testdata/codegen/regress-node-8110/nodejs-extras/compileCheck.ts

16 lines
371 B
TypeScript

import * as e from "./exampleFunc";
import { MyEnum } from "./types/enums";
// Check that common scenarios type-check.
export function checkCall() {
e.exampleFunc({
"enums": ["a", "b", "c"],
});
e.exampleFunc({
"enums": [MyEnum.One, MyEnum.Two],
});
e.exampleFunc({
"enums": ["a", "b", "c", MyEnum.One, MyEnum.Two],
});
}