Skip to content

Commit ae1cc70

Browse files
authored
fix: add Uint8ClampedArray to PNGDataArray union type (#13)
This small change will enable to pass raw ImageData objects to the encode method
1 parent d3e3bfa commit ae1cc70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { DeflateFunctionOptions } from 'pako';
33

44
export { DeflateFunctionOptions };
55

6-
export type PNGDataArray = Uint8Array | Uint16Array;
6+
export type PNGDataArray = Uint8Array | Uint8ClampedArray | Uint16Array;
77

88
export type DecoderInputType = IOBuffer | ArrayBufferLike | ArrayBufferView;
99

0 commit comments

Comments
 (0)