better-rainbow-14549
06/17/2020, 11:29 AMexport type CommonProperties<A, B> = { [K in keyof A & keyof B]: A[K] extends B[K] ? K : never };
export type AzureSubnetResult = CommonProperties<azure.network.GetSubnetResult, azure.network.Subnet>;
but it does mean I have to specify it either long-form as a type in the function, or create a new type from it for each resource. Is this something that could be added to the generated TF code somehow? Any reasons why it's bad practice or not?