@eggjs/onerror
Version:
error handler for egg
13 lines (12 loc) • 364 B
TypeScript
import { type OnerrorError } from 'koa-onerror';
import type { ILifecycleBoot, EggCore } from '@eggjs/core';
export interface OnerrorErrorWithCode extends OnerrorError {
code?: string;
type?: string;
errors?: any[];
}
export default class Boot implements ILifecycleBoot {
private app;
constructor(app: EggCore);
didLoad(): Promise<void>;
}