rename Response > SourceData

This commit is contained in:
Brandon Liu
2022-10-03 19:33:23 +08:00
parent bd53ad7d8f
commit 2a805b0f40
2 changed files with 8 additions and 8 deletions

View File

@@ -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};