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.
What
installreturns: the APIs plus every contribution to core an extension can opt into, all optional. An extension declares the narrower type it uses, such asRoomApiProvider<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 throughctx.get(extension). The room's own typing (ExtensionApis) comes from theRoomExtension<RoomApi, LocalParticipantApi>generics, which each extension pins withsatisfies.