Hi I was wondering if anyone stumble on this kind ...
# typescript
p
Hi I was wondering if anyone stumble on this kind of weird typing error. I have to explicitly cast
Output
to
OutputInstance
otherwise the language server complains
Copy code
protected service: k8s.core.v1.Service = ...;
...
backend: {
    resource: {
        apiGroup: this.service.apiVersion as pulumi.OutputInstance<string>,
        kind: this.service.kind as pulumi.OutputInstance<string>,
        name: this.name,
    }
} as inputs.networking.v1beta1.IngressBackend
The odd thing is that from the typings,
Output
is an
OutputInstance
Copy code
export declare type Output<T> = OutputInstance<T> & Lifted<T>;
Not a major issue but I don’t really understand the subtlety of that 😅 🤷