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 Parameter | Default type |
---|---|
ResultType | unknown |
ErrorType | Error |