Skip to content

Commit 5bf0ced

Browse files
committed
Make GeoTIFFImage available and fix its type imports
1 parent 38e838f commit 5bf0ced

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/geotiff.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,3 +730,4 @@ export function writeArrayBuffer(values, metadata) {
730730
}
731731

732732
export { Pool };
733+
export { GeoTIFFImage };

src/geotiffimage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import { resample, resampleInterleaved } from './resample.js';
3131
* can be passed.
3232
*/
3333

34+
/** @typedef {import("./geotiff.js").TypedArray} TypedArray */
35+
3436
function sum(array, start, end) {
3537
let s = 0;
3638
for (let i = start; i < end; ++i) {
@@ -634,7 +636,7 @@ class GeoTIFFImage {
634636
* @param {boolean} [options.enableAlpha=false] Enable reading alpha channel if present.
635637
* @param {AbortSignal} [options.signal] An AbortSignal that may be signalled if the request is
636638
* to be aborted
637-
* @returns {Promise.<import("./geotiff").TypedArray|import("./geotiff").TypedArray[]>} the RGB array as a Promise
639+
* @returns {Promise<TypedArray|TypedArray[]>} the RGB array as a Promise
638640
*/
639641
async readRGB({ window, interleave = true, pool = null, width, height,
640642
resampleMethod, enableAlpha = false, signal } = {}) {

0 commit comments

Comments
 (0)