@@ -2113,6 +2113,7 @@ export declare interface Objects {
21132113 * ```
21142114 *
21152115 * @returns A promise which, upon success, will be fulfilled with a {@link LiveMap} object. Upon failure, the promise will be rejected with an {@link ErrorInfo} object which explains the error.
2116+ * @experimental
21162117 */
21172118 getRoot < T extends LiveMapType = DefaultRoot > ( ) : Promise < LiveMap < T > > ;
21182119
@@ -2121,6 +2122,7 @@ export declare interface Objects {
21212122 *
21222123 * @param entries - The initial entries for the new {@link LiveMap} object.
21232124 * @returns A promise which, upon success, will be fulfilled with a {@link LiveMap} object. Upon failure, the promise will be rejected with an {@link ErrorInfo} object which explains the error.
2125+ * @experimental
21242126 */
21252127 createMap < T extends LiveMapType > ( entries ?: T ) : Promise < LiveMap < T > > ;
21262128
@@ -2129,6 +2131,7 @@ export declare interface Objects {
21292131 *
21302132 * @param count - The initial value for the new {@link LiveCounter} object.
21312133 * @returns A promise which, upon success, will be fulfilled with a {@link LiveCounter} object. Upon failure, the promise will be rejected with an {@link ErrorInfo} object which explains the error.
2134+ * @experimental
21322135 */
21332136 createCounter ( count ?: number ) : Promise < LiveCounter > ;
21342137
@@ -2144,6 +2147,7 @@ export declare interface Objects {
21442147 *
21452148 * @param callback - A batch callback function used to group operations together. Cannot be an `async` function.
21462149 * @returns A promise which resolves upon success of the operation and rejects with an {@link ErrorInfo} object upon its failure.
2150+ * @experimental
21472151 */
21482152 batch ( callback : BatchCallback ) : Promise < void > ;
21492153
@@ -2153,6 +2157,7 @@ export declare interface Objects {
21532157 * @param event - The named event to listen for.
21542158 * @param callback - The event listener.
21552159 * @returns A {@link OnObjectsEventResponse} object that allows the provided listener to be deregistered from future updates.
2160+ * @experimental
21562161 */
21572162 on ( event : ObjectsEvent , callback : ObjectsEventCallback ) : OnObjectsEventResponse ;
21582163
@@ -2161,11 +2166,14 @@ export declare interface Objects {
21612166 *
21622167 * @param event - The named event.
21632168 * @param callback - The event listener.
2169+ * @experimental
21642170 */
21652171 off ( event : ObjectsEvent , callback : ObjectsEventCallback ) : void ;
21662172
21672173 /**
21682174 * Deregisters all registrations, for all events and listeners.
2175+ *
2176+ * @experimental
21692177 */
21702178 offAll ( ) : void ;
21712179}
@@ -2207,6 +2215,8 @@ export type DefaultRoot =
22072215export declare interface OnObjectsEventResponse {
22082216 /**
22092217 * Deregisters the listener passed to the `on` call.
2218+ *
2219+ * @experimental
22102220 */
22112221 off ( ) : void ;
22122222}
@@ -2219,6 +2229,7 @@ export declare interface BatchContext {
22192229 * Mirrors the {@link Objects.getRoot} method and returns a {@link BatchContextLiveMap} wrapper for the root object on a channel.
22202230 *
22212231 * @returns A {@link BatchContextLiveMap} object.
2232+ * @experimental
22222233 */
22232234 getRoot < T extends LiveMapType = DefaultRoot > ( ) : BatchContextLiveMap < T > ;
22242235}
@@ -2232,11 +2243,14 @@ export declare interface BatchContextLiveMap<T extends LiveMapType> {
22322243 *
22332244 * @param key - The key to retrieve the value for.
22342245 * @returns A {@link LiveObject}, a primitive type (string, number, boolean, or binary data) or `undefined` if the key doesn't exist in a map or the associated {@link LiveObject} has been deleted. Always `undefined` if this map object is deleted.
2246+ * @experimental
22352247 */
22362248 get < TKey extends keyof T & string > ( key : TKey ) : T [ TKey ] | undefined ;
22372249
22382250 /**
22392251 * Returns the number of key-value pairs in the map.
2252+ *
2253+ * @experimental
22402254 */
22412255 size ( ) : number ;
22422256
@@ -2249,6 +2263,7 @@ export declare interface BatchContextLiveMap<T extends LiveMapType> {
22492263 *
22502264 * @param key - The key to set the value for.
22512265 * @param value - The value to assign to the key.
2266+ * @experimental
22522267 */
22532268 set < TKey extends keyof T & string > ( key : TKey , value : T [ TKey ] ) : void ;
22542269
@@ -2260,6 +2275,7 @@ export declare interface BatchContextLiveMap<T extends LiveMapType> {
22602275 * To get notified when object gets updated, use the {@link LiveObject.subscribe} method.
22612276 *
22622277 * @param key - The key to set the value for.
2278+ * @experimental
22632279 */
22642280 remove < TKey extends keyof T & string > ( key : TKey ) : void ;
22652281}
@@ -2270,6 +2286,8 @@ export declare interface BatchContextLiveMap<T extends LiveMapType> {
22702286export declare interface BatchContextLiveCounter {
22712287 /**
22722288 * Returns the current value of the counter.
2289+ *
2290+ * @experimental
22732291 */
22742292 value ( ) : number ;
22752293
@@ -2281,13 +2299,15 @@ export declare interface BatchContextLiveCounter {
22812299 * To get notified when object gets updated, use the {@link LiveObject.subscribe} method.
22822300 *
22832301 * @param amount - The amount by which to increase the counter value.
2302+ * @experimental
22842303 */
22852304 increment ( amount : number ) : void ;
22862305
22872306 /**
22882307 * An alias for calling {@link BatchContextLiveCounter.increment | BatchContextLiveCounter.increment(-amount)}
22892308 *
22902309 * @param amount - The amount by which to decrease the counter value.
2310+ * @experimental
22912311 */
22922312 decrement ( amount : number ) : void ;
22932313}
@@ -2307,26 +2327,35 @@ export declare interface LiveMap<T extends LiveMapType> extends LiveObject<LiveM
23072327 *
23082328 * @param key - The key to retrieve the value for.
23092329 * @returns A {@link LiveObject}, a primitive type (string, number, boolean, or binary data) or `undefined` if the key doesn't exist in a map or the associated {@link LiveObject} has been deleted. Always `undefined` if this map object is deleted.
2330+ * @experimental
23102331 */
23112332 get < TKey extends keyof T & string > ( key : TKey ) : T [ TKey ] | undefined ;
23122333
23132334 /**
23142335 * Returns the number of key-value pairs in the map.
2336+ *
2337+ * @experimental
23152338 */
23162339 size ( ) : number ;
23172340
23182341 /**
23192342 * Returns an iterable of key-value pairs for every entry in the map.
2343+ *
2344+ * @experimental
23202345 */
23212346 entries < TKey extends keyof T & string > ( ) : IterableIterator < [ TKey , T [ TKey ] ] > ;
23222347
23232348 /**
23242349 * Returns an iterable of keys in the map.
2350+ *
2351+ * @experimental
23252352 */
23262353 keys < TKey extends keyof T & string > ( ) : IterableIterator < TKey > ;
23272354
23282355 /**
23292356 * Returns an iterable of values in the map.
2357+ *
2358+ * @experimental
23302359 */
23312360 values < TKey extends keyof T & string > ( ) : IterableIterator < T [ TKey ] > ;
23322361
@@ -2340,6 +2369,7 @@ export declare interface LiveMap<T extends LiveMapType> extends LiveObject<LiveM
23402369 * @param key - The key to set the value for.
23412370 * @param value - The value to assign to the key.
23422371 * @returns A promise which resolves upon success of the operation and rejects with an {@link ErrorInfo} object upon its failure.
2372+ * @experimental
23432373 */
23442374 set < TKey extends keyof T & string > ( key : TKey , value : T [ TKey ] ) : Promise < void > ;
23452375
@@ -2352,6 +2382,7 @@ export declare interface LiveMap<T extends LiveMapType> extends LiveObject<LiveM
23522382 *
23532383 * @param key - The key to remove.
23542384 * @returns A promise which resolves upon success of the operation and rejects with an {@link ErrorInfo} object upon its failure.
2385+ * @experimental
23552386 */
23562387 remove < TKey extends keyof T & string > ( key : TKey ) : Promise < void > ;
23572388}
@@ -2381,6 +2412,8 @@ export type ObjectValue = string | number | boolean | Buffer | ArrayBuffer;
23812412export declare interface LiveCounter extends LiveObject < LiveCounterUpdate > {
23822413 /**
23832414 * Returns the current value of the counter.
2415+ *
2416+ * @experimental
23842417 */
23852418 value ( ) : number ;
23862419
@@ -2393,6 +2426,7 @@ export declare interface LiveCounter extends LiveObject<LiveCounterUpdate> {
23932426 *
23942427 * @param amount - The amount by which to increase the counter value.
23952428 * @returns A promise which resolves upon success of the operation and rejects with an {@link ErrorInfo} object upon its failure.
2429+ * @experimental
23962430 */
23972431 increment ( amount : number ) : Promise < void > ;
23982432
@@ -2401,6 +2435,7 @@ export declare interface LiveCounter extends LiveObject<LiveCounterUpdate> {
24012435 *
24022436 * @param amount - The amount by which to decrease the counter value.
24032437 * @returns A promise which resolves upon success of the operation and rejects with an {@link ErrorInfo} object upon its failure.
2438+ * @experimental
24042439 */
24052440 decrement ( amount : number ) : Promise < void > ;
24062441}
@@ -2429,18 +2464,22 @@ export declare interface LiveObject<TUpdate extends LiveObjectUpdate = LiveObjec
24292464 *
24302465 * @param listener - An event listener function that is called with an update object whenever this LiveObject is updated.
24312466 * @returns A {@link SubscribeResponse} object that allows the provided listener to be deregistered from future updates.
2467+ * @experimental
24322468 */
24332469 subscribe ( listener : LiveObjectUpdateCallback < TUpdate > ) : SubscribeResponse ;
24342470
24352471 /**
24362472 * Deregisters the given listener from updates for this LiveObject.
24372473 *
24382474 * @param listener - An event listener function.
2475+ * @experimental
24392476 */
24402477 unsubscribe ( listener : LiveObjectUpdateCallback < TUpdate > ) : void ;
24412478
24422479 /**
24432480 * Deregisters all listeners from updates for this LiveObject.
2481+ *
2482+ * @experimental
24442483 */
24452484 unsubscribeAll ( ) : void ;
24462485
@@ -2450,6 +2489,7 @@ export declare interface LiveObject<TUpdate extends LiveObjectUpdate = LiveObjec
24502489 * @param event - The named event to listen for.
24512490 * @param callback - The event listener.
24522491 * @returns A {@link OnLiveObjectLifecycleEventResponse} object that allows the provided listener to be deregistered from future updates.
2492+ * @experimental
24532493 */
24542494 on ( event : LiveObjectLifecycleEvent , callback : LiveObjectLifecycleEventCallback ) : OnLiveObjectLifecycleEventResponse ;
24552495
@@ -2458,11 +2498,14 @@ export declare interface LiveObject<TUpdate extends LiveObjectUpdate = LiveObjec
24582498 *
24592499 * @param event - The named event.
24602500 * @param callback - The event listener.
2501+ * @experimental
24612502 */
24622503 off ( event : LiveObjectLifecycleEvent , callback : LiveObjectLifecycleEventCallback ) : void ;
24632504
24642505 /**
24652506 * Deregisters all registrations, for all events and listeners.
2507+ *
2508+ * @experimental
24662509 */
24672510 offAll ( ) : void ;
24682511}
@@ -2483,6 +2526,8 @@ export declare interface LiveObjectUpdate {
24832526export declare interface SubscribeResponse {
24842527 /**
24852528 * Deregisters the listener passed to the `subscribe` call.
2529+ *
2530+ * @experimental
24862531 */
24872532 unsubscribe ( ) : void ;
24882533}
@@ -2493,6 +2538,8 @@ export declare interface SubscribeResponse {
24932538export declare interface OnLiveObjectLifecycleEventResponse {
24942539 /**
24952540 * Deregisters the listener passed to the `on` call.
2541+ *
2542+ * @experimental
24962543 */
24972544 off ( ) : void ;
24982545}
0 commit comments