lemmy-js-client 0.20.0-reports-combined.0 → 0.20.0-reports-combined.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/http.d.ts +1 -1
- package/dist/http.js +1 -1
- package/dist/types/ReportCombinedView.d.ts +7 -7
- package/package.json +1 -1
package/dist/http.d.ts
CHANGED
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
|
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
|
-
|
6
|
-
} | {
|
7
|
-
|
8
|
-
} | {
|
9
|
-
|
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.
|
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",
|