fix: remove all linter errors
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import * as thumbhash from "thumbhash";
|
||||
|
||||
export function generateThumbhash(buffer: Uint8Array, w: number, h: number) {
|
||||
export function generateThumbhash(
|
||||
buffer: ArrayLike<number>,
|
||||
w: number,
|
||||
h: number,
|
||||
) {
|
||||
const hash = thumbhash.rgbaToThumbHash(w, h, buffer);
|
||||
return [hash, thumbhash.thumbHashToAverageRGBA(hash)] as const;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user