Skip to content

Tankōbon / shared/library / AddFileResult

Type Alias: AddFileResult ​

AddFileResult = { status: "cancelled"; } | { organization: OrganizationOutcome; status: "added"; title: string; } | { status: "exists"; title: string; } | { message: string; status: "error"; }

Defined in: shared/library.ts:108

Outcome of library.addFile().

Union Members ​

Type Literal ​

{ status: "cancelled"; }


Type Literal ​

{ organization: OrganizationOutcome; status: "added"; title: string; }

The comic was added to the library; the reader is not opened.


Type Literal ​

{ status: "exists"; title: string; }

The comic was already in the library, and is left untouched.


Type Literal ​

{ message: string; status: "error"; }

The file can't be opened (corrupted, unsupported…); message is in the interface language.