mirror of https://github.com/pulumi/pulumi.git
16 lines
371 B
TypeScript
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],
|
||
|
});
|
||
|
}
|