FileOpenOptions
What the person is asked to choose from, and how much may be read.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { FileOpenOptions } from "@mapcairn/core";
interface FileOpenOptions
Properties
accept
readonly accept: readonly string[];
The file types the picker offers, as extensions (.geojson) and media
types (application/geo+json). The picker may still let the person
choose any file, so the caller checks what it reads.
maxBytes
readonly maxBytes: number;
The largest file that is read, in bytes. A larger one is refused before it is read.
signal
readonly signal?: AbortSignal;
Cancels the open: a pending picker settles as cancelled.