Type Inference from `createServerFn`
The server function:
Part of the TS error:
Seems to be an issue with how Typescript is inferring the response structure by expanding all nested types. Not 100% positive on the best approach here. Is there a means to type cast in order to have it infer the return as something like
Promise<Stripe.Customer | null>? I know that is not ideal, so just reaching out in case others have run into this and if there are any suggestions!