Skip to content

MaybeResult

type MaybeResult<ResultType, ErrorType> =
| {
error: ErrorType;
result: undefined;
}
| {
error: undefined;
result: ResultType;
};

Defined in: node_modules/.pnpm/[email protected]/node_modules/iso-web/dist/src/types.d.ts:30

Generic result with error

Type Parameters

Type ParameterDefault type
ResultTypeunknown
ErrorTypeError