FaintSkyOptionstype
What faintSky takes.
Import it
import type { FaintSkyOptions } from "@johnmorrisdotca/hoshi-stars/faint";
Definition
interface FaintSkyOptions {
baseUrl?: string;
fetch?: TileFetch;
maxTiles?: number;
}
Members
| Name | Type | Description |
|---|---|---|
baseUrl (optional) | string | undefined | The folder the tiles are in, with a closing slash: |
fetch (optional) | TileFetch | undefined | The |
maxTiles (optional) | number | undefined | How many decoded tiles to keep before the oldest is let go: 256 where left out (about 40 MB at the most). |
Examples
import type { FaintSkyOptions } from "@johnmorrisdotca/hoshi-stars/faint";
const options: FaintSkyOptions = { baseUrl: "/faint-tiles/", maxTiles: 128 };
console.log(options.baseUrl);/faint-tiles/What it prints (run when this page was built)