https://pulumi.com logo
#typescript
Title
# typescript
w

worried-queen-62794

04/18/2021, 9:41 AM
OutputInstance
defines these:
Copy code
apply<U>(func: (t: T) => Promise<U>): Output<U>;
    apply<U>(func: (t: T) => OutputInstance<U>): Output<U>;
    apply<U>(func: (t: T) => U): Output<U>;
Shouldn't they be?
Copy code
apply<U>(func: (t: T) => Promise<U> | OutputInstance<U> | U): Output<U>;
Otherwise if
func
is something like
string => number | Promise<number>
then it returns
Output<number | Promise<number>>
rather than
Output<number>
. Unless that was intentional?