From 426ce19d167f655d383a386fce5ed1718449276a Mon Sep 17 00:00:00 2001 From: Shawn Larson Date: Fri, 3 Jul 2020 02:02:53 -0500 Subject: [PATCH] Fix width and height TypeScript types (#26) --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index 1a4d372..1e7f697 100644 --- a/index.d.ts +++ b/index.d.ts @@ -34,8 +34,8 @@ declare const terminalImage: { ``` */ buffer: (imageBuffer: Readonly, options?: Readonly<{ - width?: number; - height?: number; + width?: string | number; + height?: string | number; preserveAspectRatio?: boolean; }>) => Promise; @@ -72,8 +72,8 @@ declare const terminalImage: { file: ( filePath: string, options?: Readonly<{ - width?: number; - height?: number; + width?: string | number; + height?: string | number; preserveAspectRatio?: boolean; }> ) => Promise;