diff --git a/js/adapters.ts b/js/adapters.ts index a6035fe..e64f6fe 100644 --- a/js/adapters.ts +++ b/js/adapters.ts @@ -1,4 +1,7 @@ declare const L: any; +declare const window: any; +declare const document: any; + import { PMTiles, Source, TileType } from "./index"; export const leafletRasterLayer = (source: PMTiles, options: any) => { diff --git a/serverless/aws/src/index.ts b/serverless/aws/src/index.ts index 68a06ec..b450551 100644 --- a/serverless/aws/src/index.ts +++ b/serverless/aws/src/index.ts @@ -11,7 +11,7 @@ import { Source, Compression, TileType, -} from "../../../js"; +} from "../../../js/index"; import https from "https"; import zlib from "zlib"; diff --git a/serverless/cloudflare/src/index.ts b/serverless/cloudflare/src/index.ts index 2bd866d..da634d7 100644 --- a/serverless/cloudflare/src/index.ts +++ b/serverless/cloudflare/src/index.ts @@ -11,7 +11,7 @@ import { ResolvedValueCache, TileType, Compression, -} from "../../../js"; +} from "../../../js/index"; interface Env { BUCKET: R2Bucket;