mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
rename Response > SourceData
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
Cache,
|
||||
BufferPosition,
|
||||
Source,
|
||||
Response,
|
||||
SourceData,
|
||||
VersionMismatch,
|
||||
PMTiles,
|
||||
} from "./v3";
|
||||
@@ -135,7 +135,7 @@ class TestNodeFileSource implements Source {
|
||||
async getBytes(
|
||||
offset: number,
|
||||
length: number
|
||||
): Promise<Response> {
|
||||
): Promise<SourceData> {
|
||||
const slice = new Uint8Array(this.buffer.slice(offset, offset + length))
|
||||
.buffer;
|
||||
return {data:slice, etag:this.etag};
|
||||
|
||||
Reference in New Issue
Block a user