Skip to content

Commit

Permalink
Fix width and height TypeScript types (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
splars authored Jul 3, 2020
1 parent 09934ed commit 426ce19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ declare const terminalImage: {
```
*/
buffer: (imageBuffer: Readonly<Buffer>, options?: Readonly<{
width?: number;
height?: number;
width?: string | number;
height?: string | number;
preserveAspectRatio?: boolean;
}>) => Promise<string>;

Expand Down Expand Up @@ -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<string>;
Expand Down

0 comments on commit 426ce19

Please sign in to comment.