Type alias UpsertResult

UpsertResult: {
    created: boolean;
    errors: never[];
    id: string;
    success: true;
} | {
    created?: undefined;
    errors: SaveError[];
    id?: undefined;
    success: false;
}

Type declaration

  • created: boolean
  • errors: never[]
  • id: string
  • success: true

Type declaration

  • Optional created?: undefined
  • errors: SaveError[]
  • Optional id?: undefined
  • success: false