mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 12:57:46 +00:00
[cli] Update to TypeScript v4.7.4 (#8232)
This commit is contained in:
@@ -2,6 +2,7 @@ import chalk from 'chalk';
|
||||
import renderLink from './link';
|
||||
import wait, { StopSpinner } from './wait';
|
||||
import type { WritableTTY } from '../../types';
|
||||
import { errorToString } from '../is-error';
|
||||
|
||||
export interface OutputOptions {
|
||||
debug?: boolean;
|
||||
@@ -79,10 +80,13 @@ export class Output {
|
||||
}
|
||||
};
|
||||
|
||||
prettyError = (
|
||||
err: Pick<Error, 'message'> & { link?: string; action?: string }
|
||||
) => {
|
||||
return this.error(err.message, undefined, err.link, err.action);
|
||||
prettyError = (err: unknown) => {
|
||||
return this.error(
|
||||
errorToString(err),
|
||||
undefined,
|
||||
(err as any).link,
|
||||
(err as any).action
|
||||
);
|
||||
};
|
||||
|
||||
ready = (str: string) => {
|
||||
|
||||
Reference in New Issue
Block a user