Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Improve and enrich exported types #159

@slaesh

Description

@slaesh

Feature request

I have no clue what's the current state of this lib, maybe this would come later on..
But the exported types should be improved and enriched.

For example:

Currently the interface for the RealtimeChannel's on call could be easily improved.

on(type: string, filter?: { [key: string]: string }, callback?: Function) {

Instead of

on(type: string, filter?: { [key: string]: string }, callback?: Function) {}

we should go with this:

on(type: string, callback: Function, filter?: { [key: string]: string })
  1. why register a listener without a callback? so make it mandatory..
  2. since point 1, move the optional filters at the end
  3. it would be great not to use just Function.. What about making it typed instead? =)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions