Skip to content

Commit 068085b

Browse files
Merge pull request #295 from pbomb/fix-ts-types
Fix TS types for references that do not point to objects
2 parents e867eb7 + 3492a1f commit 068085b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/geotiffimage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class GeoTIFFImage {
180180
* @param {DataView} dataView The DataView for the underlying file.
181181
* @param {Boolean} littleEndian Whether the file is encoded in little or big endian
182182
* @param {Boolean} cache Whether or not decoded tiles shall be cached
183-
* @param {Source} source The datasource to read from
183+
* @param {import('./source/basesource').BaseSource} source The datasource to read from
184184
*/
185185
constructor(fileDirectory, geoKeys, dataView, littleEndian, cache, source) {
186186
this.fileDirectory = fileDirectory;
@@ -356,7 +356,7 @@ class GeoTIFFImage {
356356
* @param {Number} x the strip or tile x-offset
357357
* @param {Number} y the tile y-offset (0 for stripped images)
358358
* @param {Number} sample the sample to get for separated samples
359-
* @param {import("./geotiff").Pool|AbstractDecoder} poolOrDecoder the decoder or decoder pool
359+
* @param {import("./geotiff").Pool|import("./geotiff").BaseDecoder} poolOrDecoder the decoder or decoder pool
360360
* @param {AbortSignal} [signal] An AbortSignal that may be signalled if the request is
361361
* to be aborted
362362
* @returns {Promise.<ArrayBuffer>}

src/source/blockedsource.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ class BlockGroup {
4040
export class BlockedSource extends BaseSource {
4141
/**
4242
*
43-
* @param {Source} source The underlying source that shall be blocked and cached
43+
* @param {BaseSource} source The underlying source that shall be blocked and cached
4444
* @param {object} options
45+
* @param {number} [options.blockSize]
46+
* @param {number} [options.cacheSize]
4547
*/
4648
constructor(source, { blockSize = 65536, cacheSize = 100 } = {}) {
4749
super();
@@ -65,7 +67,7 @@ export class BlockedSource extends BaseSource {
6567

6668
/**
6769
*
68-
* @param {basesource/Slice[]} slices
70+
* @param {import("./basesource").Slice[]} slices
6971
*/
7072
async fetch(slices, signal) {
7173
const blockRequests = [];
@@ -241,7 +243,7 @@ export class BlockedSource extends BaseSource {
241243

242244
/**
243245
*
244-
* @param {Slice[]} slices
246+
* @param {import("./basesource").Slice[]} slices
245247
* @param {Map} blocks
246248
*/
247249
readSliceData(slices, blocks) {

0 commit comments

Comments
 (0)