Skip to main content

FileOpenErrorKind

Why no file was opened: the person closed the picker or the caller cancelled (cancelled, which callers ignore), the file was larger than allowed (too-large), it could not be read (unreadable), or the browser cannot open files (unsupported).

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { FileOpenErrorKind } from "@mapcairn/core";

type FileOpenErrorKind = "cancelled" | "too-large" | "unreadable" | "unsupported";

Source: packages/core/src/ports/errors.ts:174