pulumi-kubernetes icon indicating copy to clipboard operation
pulumi-kubernetes copied to clipboard

generated doc type doesn't match TS (transformations)

Open brandonkal opened this issue 5 years ago • 1 comments

See here: https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/kubernetes/yaml/#ConfigFileOpts-transformations

It should be an array of functions that return void vs a function that returns void[]

brandonkal avatar Jan 26 '20 16:01 brandonkal

The definition from the source:

transformations?: ((o: any, opts: pulumi.CustomResourceOptions) => void)[];

The docs:

transformations?: (o: any, opts: CustomResourceOptions) => void[];

The docs are just missing parentheses around the function type.

justinvp avatar Jan 27 '20 12:01 justinvp