UNPKG

@eggjs/typebox-validate

Version:

another validate for typescript egg projects

13 lines (12 loc) 340 B
import type { Application, ILifecycleBoot } from 'egg'; import { Ajv2019 as Ajv } from 'ajv/dist/2019.js'; export default class AppBootHook implements ILifecycleBoot { app: Application; constructor(app: Application); configDidLoad(): Promise<void>; } declare module 'egg' { interface Application { ajv: Ajv; } }