Type Alias Result<T>

Result:
    | { err: Error } & { [key in keyof T]?: never }
    | { err?: never } & { [key in keyof T]: T[key] }

Type Parameters

  • T extends Record<string, unknown>