Closed diogob closed 1 month ago
Before the type Composable would be diplayed as:
Composable
const f = composable((x: number) => x) // ^? ((x: number) => Promise<Result<number>>) & { kind: "composable"; }
This was really bothering me when using the library, particularly when dealing with composables with an already cluttered return type. After this PR it resolves to a new type we don't export called ComposableFunction:
ComposableFunction
const f = composable((x: number) => x) // ^? ComposableFunction<(x: number) => number>
Before the type
Composable
would be diplayed as:This was really bothering me when using the library, particularly when dealing with composables with an already cluttered return type. After this PR it resolves to a new type we don't export called
ComposableFunction
: