diff --git a/lib/Event.ts b/lib/Event.ts index d259de19..ee51feb8 100644 --- a/lib/Event.ts +++ b/lib/Event.ts @@ -22,9 +22,9 @@ export type GenericEvents = Record * export {} * * // your-code.ts - * import { emit } from '@nextcloud/event-bus' + * import { subscribe } from '@nextcloud/event-bus' * // Here the type of 'params' is infered automatically - * emit('my-event', (params) => { console.debug(params.foo, params.bar) }) + * subscribe('my-event', (params) => { console.debug(params.foo, params.bar) }) * ``` */ export interface NextcloudEvents {