Commit 63a5c10e authored by Kim, Hyeonseo's avatar Kim, Hyeonseo
Browse files

Add type parameter to getAsciiArt in cli/node.ts

parent 4644b698
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ function rgbTo256Color(r: number, g: number, b: number): number {
function getAsciiArt(
  image: Awaited<ReturnType<typeof Jimp.read>>,
  width = DEFAULT_IMAGE_WIDTH,
  trueColorSupport,
  trueColorSupport: boolean,
): string {
  const ratio = image.width / image.height;
  const height = Math.round(