UNPKG

774 BTypeScriptView Raw
1declare class FormidableError extends Error {
2 internalCode: number;
3 httpCode?: number | undefined;
4 constructor(message: string, internalCode: number, httpCode?: number);
5}
6
7declare const errors:
8 & {
9 FormidableError: typeof FormidableError;
10 }
11 & Record<
12 | "missingPlugin"
13 | "pluginFunction"
14 | "aborted"
15 | "noParser"
16 | "uninitializedParser"
17 | "filenameNotString"
18 | "maxFieldsSizeExceeded"
19 | "maxFieldsExceeded"
20 | "smallerThanMinFileSize"
21 | "biggerThanMaxFileSize"
22 | "noEmptyFiles"
23 | "missingContentType"
24 | "malformedMultipart"
25 | "missingMultipartBoundary"
26 | "unknownTransferEncoding",
27 number
28 >;
29
30export = errors;