linting and typing improvements [#287] (#337)

* Typing improvements [#287]

* rename FileApiSource to FileSource
* In a few cases we need to use any and biome-ignore. Deferring any restructuring here to js v4.
* replace prettier with biome
This commit is contained in:
Brandon Liu
2024-01-31 12:22:25 +08:00
committed by GitHub
parent 6bb1c68ead
commit 6638d040a5
8 changed files with 74 additions and 51 deletions

View File

@@ -371,7 +371,7 @@ test("pmtiles get metadata", async () => {
);
const p = new PMTiles(source);
const metadata = await p.getMetadata();
assert.ok(metadata.name);
assert.ok((metadata as { name: string }).name);
});
// echo '{"type":"Polygon","coordinates":[[[0,0],[0,1],[1,0],[0,0]]]}' | ./tippecanoe -zg -o test_fixture_2.pmtiles
@@ -383,7 +383,7 @@ test("pmtiles handle retries", async () => {
source.etag = "1";
const p = new PMTiles(source);
const metadata = await p.getMetadata();
assert.ok(metadata.name);
assert.ok((metadata as { name: string }).name);
source.etag = "2";
source.replaceData("test/data/test_fixture_2.pmtiles");
assert.ok(await p.getZxy(0, 0, 0));