@lwc/errors
Version:
LWC Error Utilities
25 lines • 789 B
TypeScript
export declare const DiagnosticLevel: {
/** Unexpected error, parsing error, bundling error */
readonly Fatal: 0;
/** Linting error with error level, invalid external reference, invalid import, invalid transform */
readonly Error: 1;
/** Linting error with warning level, usage of an API to be deprecated */
readonly Warning: 2;
/** Logging messages */
readonly Log: 3;
};
export type DiagnosticLevel = (typeof DiagnosticLevel)[keyof typeof DiagnosticLevel];
export interface LWCErrorInfo {
code: number;
message: string;
level: DiagnosticLevel;
url?: string;
strictLevel?: DiagnosticLevel;
}
export interface Location {
line: number;
column: number;
start?: number;
length?: number;
}
//# sourceMappingURL=types.d.ts.map