egg-typebox-validate
Version:
another validate for typescript egg projects
13 lines (12 loc) • 340 B
TypeScript
import type { EggCore, ILifecycleBoot } from '@eggjs/core';
import { Ajv2019 as Ajv } from 'ajv/dist/2019.js';
export default class AppBootHook implements ILifecycleBoot {
app: EggCore;
constructor(app: EggCore);
configDidLoad(): Promise<void>;
}
declare module '@eggjs/core' {
interface EggCore {
ajv: Ajv;
}
}