PackedElementsOptionstype
What packedElementsFrom can be told. Every one has a safe default.
Import it
import type { PackedElementsOptions } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface PackedElementsOptions {
maxBytes?: number;
fetch?: typeof fetch;
}
Members
| Name | Type | Description |
|---|---|---|
maxBytes (optional) | number | undefined | The most bytes of answer read (64 MB by default, the most a packed file may unpack to). |
fetch (optional) | ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined | The fetch function (the browser's by default). |
Examples
import type { PackedElementsOptions } from "@johnmorrisdotca/chikyu-earth/door";
const options: PackedElementsOptions = { maxBytes: 30_000_000 };
console.log(options.maxBytes);30000000What it prints (run when this page was built)