I much love this library. But I have small request.
Is your feature request related to a problem? Please describe.
I am developing with TS. I want to use SuccessResult and ErrorResult directly. For example, when Ogs catches an error, I want to typedef the argument to ErrorResult.
Describe the solution you'd like
Just export SuccessResult and ErrorResult type.
Describe alternatives you've considered
type OgsResult = ReturnType<typeof ogs> extends Promise<infer T> ? T : never;
But this solution cannot extract single SuccessResult or ErrorResult type.
Additional context
Add any other context or screenshots about the feature request here.
I much love this library. But I have small request.
Is your feature request related to a problem? Please describe. I am developing with TS. I want to use
SuccessResult
andErrorResult
directly. For example, when Ogs catches an error, I want to typedef the argument toErrorResult
.Describe the solution you'd like Just export
SuccessResult
andErrorResult
type.Describe alternatives you've considered
But this solution cannot extract single SuccessResult or ErrorResult type.
Additional context Add any other context or screenshots about the feature request here.