Typescript resource input types are not discoverable #13481
Labels
area/codegen
SDK-gen, program-gen, convert
kind/enhancement
Improvements or new features
language/javascript
I was working on authoring a ComponentResource that required defining and exporting an input interface that used some of the existing AWS resource inputs:
I didn't get any helpful autocomplete or autoimport when adding
pulumi.Input<input.glue.CatalogTableStorageDescriptorColumn
. It took quite a bit of trail and error to discover that the right incantation for the import wasimport { input } from "@pulumi/aws/types/index";
And strangely enough, if I try to import via
import { glue } from "@pulumi/aws/types/input";
the type I'm looking for isn't available. I wasn't able to do an autoimport for input.glue.CatalogTableStorageDescriptorColumn either. However the args that the glue table constructer accepts, CatalogTableArgs did do an autoimport for
import { CatalogTableArgs } from "@pulumi/aws/glue";
when I referenced it.I brought this up with @lukehoban and he had the following to say:
The text was updated successfully, but these errors were encountered: