-
so that when I try to add event listener to on channels file or any other place like the client. I would not write the wrong event names. |
Beta Was this translation helpful? Give feedback.
Answered by
daffl
Oct 3, 2023
Replies: 1 comment 1 reply
-
You should be able to add the interface with the events in your export declare interface MessageService {
on(event: 'created', listener: (message: Message) => void): this
on(event: string, listener: Function): this
}
// By default calls the standard Knex adapter service methods but can be customized with your own functionality.
export class MessageService<ServiceParams extends Params = MessageParams> extends KnexService<
Message,
MessageData,
MessageParams,
MessagePatch
> {} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
noor-tg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to add the interface with the events in your
.class.ts
file: