lemmy-js-client 0.20.0-reports-combined.0 → 0.20.0-reports-combined.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/http.d.ts CHANGED
@@ -815,7 +815,7 @@ export declare class LemmyHttp {
815
815
  */
816
816
  getFederatedInstances(options?: RequestOptions): Promise<GetFederatedInstancesResponse>;
817
817
  /**
818
- * List post reports.
818
+ * List user reports.
819
819
  *
820
820
  * `HTTP.GET /report/list`
821
821
  */
package/dist/http.js CHANGED
@@ -919,7 +919,7 @@ class LemmyHttp {
919
919
  return __classPrivateFieldGet(this, _LemmyHttp_instances, "m", _LemmyHttp_wrapper).call(this, HttpType.Get, "/federated_instances", {}, options);
920
920
  }
921
921
  /**
922
- * List post reports.
922
+ * List user reports.
923
923
  *
924
924
  * `HTTP.GET /report/list`
925
925
  */
@@ -1,10 +1,10 @@
1
1
  import type { CommentReportView } from "./CommentReportView";
2
2
  import type { PostReportView } from "./PostReportView";
3
3
  import type { PrivateMessageReportView } from "./PrivateMessageReportView";
4
- export type ReportCombinedView = {
5
- Post: PostReportView;
6
- } | {
7
- Comment: CommentReportView;
8
- } | {
9
- PrivateMessage: PrivateMessageReportView;
10
- };
4
+ export type ReportCombinedView = ({
5
+ type_: "Post";
6
+ } & PostReportView) | ({
7
+ type_: "Comment";
8
+ } & CommentReportView) | ({
9
+ type_: "PrivateMessage";
10
+ } & PrivateMessageReportView);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.20.0-reports-combined.0",
4
+ "version": "0.20.0-reports-combined.2",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",