CHAN.RUN
Result of tryAsync — error type narrows when wrapping a declared function.
type AsyncResult<T, E> =
| {
data: T;
ok: true;
}
| {
error: E;
ok: false;
};Defined in: src/types.ts
Result of tryAsync — error type narrows when wrapping a declared function.
| Type Parameter | Default type |
|---|---|
T | - |
E | unknown |