Skip to content

Commit

Permalink
Update encodeGif types
Browse files Browse the repository at this point in the history
as said [in the docs](https://github.com/jtlapp/gifwrap#gifcodecencodegifframes-spec) the encode spec in encodeGif is actually optional
  • Loading branch information
Grubba27 committed Nov 8, 2022
1 parent af479c2 commit 01058ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -102,7 +102,7 @@ export class GifCodec implements GifEncoder, GifDecoder {

constructor(options?: GifCodecOptions);

encodeGif(frames: GifFrame[], spec: GifSpec): Promise<Gif>;
encodeGif(frames: GifFrame[], spec?: GifSpec): Promise<Gif>;
decodeGif(buffer: Buffer): Promise<Gif>;
}

Expand Down

0 comments on commit 01058ee

Please sign in to comment.