Skip to content

Commit

Permalink
Make ImageMetadata partially initializable
Browse files Browse the repository at this point in the history
To avoid requiring chromaSubsampling field which is erroneously defined as non-optional on sharp.Metadata
  • Loading branch information
sgarner committed Jul 5, 2019
1 parent 29e8bef commit ff3415b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImageMetadata.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Metadata, Channels } from 'sharp';
import { Initializable } from '@madsci/ts-class-initializable';
import { PartiallyInitializable } from '@madsci/ts-class-initializable';
import { ImageMimeType } from './ImageMimeType';

export class ImageMetadata extends Initializable<ImageMetadata> implements Metadata {
export class ImageMetadata extends PartiallyInitializable<ImageMetadata> implements Metadata {
/** MIME Type of the image format, e.g. image/jpeg */
public mimeType: ImageMimeType;

Expand Down

0 comments on commit ff3415b

Please sign in to comment.