LiveKit JS Client SDK - v2.25.0
    Preparing search index...

    Type Alias ExtensionResult<RoomApi, LocalParticipantApi>Experimental

    ExtensionResult: Partial<
        RoomApiProvider<RoomApi> & LocalParticipantApiProvider<
            LocalParticipantApi,
        > & Disposable,
    > & EngineHooks & ConnectionHooks & ParticipantHooks & DataPacketOwner & Partial<
        CoreSlots,
    > & SyncStateProvider

    What install returns: the APIs plus every contribution to core an extension can opt into, all optional. An extension declares the narrower type it uses, such as RoomApiProvider<RpcRoomApi> & LocalParticipantApiProvider<RpcLocalParticipantApi> & DataPacketOwner, so a missing API or an undeclared contribution is a type error. Extra members are not copied anywhere; dependent extensions read them through ctx.get(extension). The room's own typing (ExtensionApis) comes from the RoomExtension<RoomApi, LocalParticipantApi> generics, which each extension pins with satisfies.

    Type Parameters

    • RoomApi = {}
    • LocalParticipantApi = {}