Skip to content

Commit

Permalink
refactor: correct test and doc
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 26, 2023
1 parent 14d8ab5 commit e5daa88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/__test__/cog.read.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('CogRead', () => {
assert.equal(im.isTiled(), false);

// 32 bit float DEM
assert.deepEqual(im.value(TiffTag.BitsPerSample), 32);
assert.deepEqual(im.value(TiffTag.BitsPerSample), [32]);
assert.equal(im.value(TiffTag.SampleFormat), SampleFormat.Float);
assert.equal(im.value(TiffTag.Photometric), Photometric.MinIsBlack);

Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/const/tiff.tag.id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ export interface TiffTagType {
[TiffTag.ImageHeight]: number;
[TiffTag.ImageWidth]: number;
[TiffTag.SubFileType]: SubFileType;
/** Number if only one band present */
[TiffTag.BitsPerSample]: number[] | number;
[TiffTag.BitsPerSample]: number[];
[TiffTag.Compression]: Compression;
[TiffTag.OldSubFileType]: OldSubFileType;
[TiffTag.Photometric]: Photometric;
Expand Down

0 comments on commit e5daa88

Please sign in to comment.