UNPKG

@digicms/cms

Version:

An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite

18 lines (14 loc) 375 B
type Handler = (context: any) => any; type AsyncHook = { handlers: Handler[]; register(handler: Handler): this; delete(handler: Handler): this; call(): Promise<void>; }; type SyncHook = { get handlers(): Handler[]; register(handler: Handler): this; delete(handler: Handler): this; call(): void; }; export type Hook = AsyncHook | SyncHook;