Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
39
node_modules/@vercel/build-utils/dist/errors.d.ts
generated
vendored
Normal file
39
node_modules/@vercel/build-utils/dist/errors.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* This error should be thrown from a Builder in
|
||||
* order to stop the build and print a message.
|
||||
* This is necessary to avoid printing a stack trace.
|
||||
*/
|
||||
export declare class NowBuildError extends Error {
|
||||
hideStackTrace: boolean;
|
||||
code: string;
|
||||
link?: string;
|
||||
action?: string;
|
||||
constructor({ message, code, link, action }: Props);
|
||||
}
|
||||
interface Props {
|
||||
/**
|
||||
* The error message to display to the end-user.
|
||||
* Should be short yet descriptive of what they did wrong.
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* A unique error code for this particular error.
|
||||
* Should start with the builder name such as `NODE_`.
|
||||
*/
|
||||
code: string;
|
||||
/**
|
||||
* Optional hyperlink starting with https://vercel.com to
|
||||
* link to more information about this error.
|
||||
*/
|
||||
link?: string;
|
||||
/**
|
||||
* Optional "action" to display before the `link`, such as "Learn More".
|
||||
*/
|
||||
action?: string;
|
||||
}
|
||||
export declare function getPrettyError(obj: {
|
||||
dataPath?: string;
|
||||
message?: string;
|
||||
params: any;
|
||||
}): NowBuildError;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue