@devvit/public-api 0.10.23-next-2024-06-13-b4fe6dd97.0 → 0.10.23-next-2024-06-13-8c5a69306.0

Sign up to get free protection for your applications and to get access to all the features.
package/public-api.d.ts CHANGED
@@ -842,14 +842,14 @@ declare const enum AppDebug {
842
842
  EmitSnapshots = "emitSnapshots",
843
843
  /** Log app state changes. */
844
844
  EmitState = "emitState",
845
+ /** Enable debug logging for realtime and useChannel() hook. */
846
+ Realtime = "realtime",
845
847
  /** Enable runtime and dispatcher logging. */
846
848
  Runtime = "runtime",
847
849
  /** Enable debug logging for devvit-surface and dispatcher. */
848
850
  Surface = "surface",
849
851
  /** Enable debug logging for the useAsync() hook family. */
850
- UseAsync = "useAsync",
851
- /** Enable debug logging for useChannel() hook. */
852
- UseChannel = "useChannel"
852
+ UseAsync = "useAsync"
853
853
  }
854
854
 
855
855
  /** The event name for when your app is installed */
@@ -20445,12 +20445,14 @@ declare interface Listings {
20445
20445
  * Get a comment tree for a Post
20446
20446
  *
20447
20447
  * @see {@link https://www.reddit.com/dev/api#GET_comments_\{article\}}
20448
+ * Note: reddit API returns this in an array of listings. Generated code can't handle this.
20448
20449
  */
20449
20450
  Comments(request: GetCommentsRequest, metadata?: Metadata): Promise<ListingResponse>;
20450
20451
  /**
20451
20452
  * Find duplicate posts that reference the same URL as this Post
20452
20453
  *
20453
20454
  * @see {@link https://www.reddit.com/dev/api#GET_duplicates_\{article\}}
20455
+ * Note: reddit API returns this in an array of listings. Generated code can't handle this.
20454
20456
  */
20455
20457
  Duplicates(request: GetDuplicatesRequest, metadata?: Metadata): Promise<ListingResponse>;
20456
20458
  /**
@@ -21252,6 +21254,7 @@ declare const ListingsDefinition: {
21252
21254
  * Get a comment tree for a Post
21253
21255
  *
21254
21256
  * @see {@link https://www.reddit.com/dev/api#GET_comments_\{article\}}
21257
+ * Note: reddit API returns this in an array of listings. Generated code can't handle this.
21255
21258
  */
21256
21259
  readonly comments: {
21257
21260
  readonly name: "Comments";
@@ -21629,16 +21632,13 @@ declare const ListingsDefinition: {
21629
21632
  }): ListingResponse;
21630
21633
  };
21631
21634
  readonly responseStream: false;
21632
- readonly options: {
21633
- readonly _unknownFields: {
21634
- readonly 480010: readonly [Uint8Array];
21635
- };
21636
- };
21635
+ readonly options: {};
21637
21636
  };
21638
21637
  /**
21639
21638
  * Find duplicate posts that reference the same URL as this Post
21640
21639
  *
21641
21640
  * @see {@link https://www.reddit.com/dev/api#GET_duplicates_\{article\}}
21641
+ * Note: reddit API returns this in an array of listings. Generated code can't handle this.
21642
21642
  */
21643
21643
  readonly duplicates: {
21644
21644
  readonly name: "Duplicates";
@@ -22018,11 +22018,7 @@ declare const ListingsDefinition: {
22018
22018
  }): ListingResponse;
22019
22019
  };
22020
22020
  readonly responseStream: false;
22021
- readonly options: {
22022
- readonly _unknownFields: {
22023
- readonly 480010: readonly [Uint8Array];
22024
- };
22025
- };
22021
+ readonly options: {};
22026
22022
  };
22027
22023
  /**
22028
22024
  * Listing with Hot sort
@@ -65675,6 +65671,8 @@ export declare type UseAsyncResult<S> = {
65675
65671
 
65676
65672
  export declare function useAsyncState<S extends JSONValue>(initializer: AsyncUseStateInitializer<S>): UseStateResult<S>;
65677
65673
 
65674
+ export declare function useChannel(opts: Readonly<ChannelOptions>): UseChannelResult;
65675
+
65678
65676
  export declare type UseChannelHook = (options: ChannelOptions) => UseChannelResult;
65679
65677
 
65680
65678
  export declare type UseChannelResult = {