EarthTilesOptionstype
What earthTiles takes.
Import it
import type { EarthTilesOptions } from "@johnmorrisdotca/chikyu-earth/door";
Definition
interface EarthTilesOptions {
fetch?: (url: string, init?: RequestInit) => Promise<Response>;
decode?: (blob: Blob) => Promise<BitmapLike>;
}
Members
| Name | Type | Description |
|---|---|---|
fetch (optional) | ((url: string, init?: RequestInit) => Promise<Response>) | undefined | The |
decode (optional) | ((blob: Blob) => Promise<BitmapLike>) | undefined | Makes a picture of a tile's bytes: |
Examples
import type { EarthTilesOptions } from "@johnmorrisdotca/chikyu-earth/door";
const options: EarthTilesOptions = { fetch: (url, init) => fetch(url, init) };
console.log(typeof options.fetch);functionWhat it prints (run when this page was built)