Skip to content

Commit f9d0576

Browse files
authored
fix: Fix v1.lists.$select(id).remove and v1.statuses.$select(id).reblog() types (#1381)
1 parent 4a88b21 commit f9d0576

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/mastodon/rest/v1/lists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export interface Lists$SelectResource {
7676
* @return N/A
7777
* @see https://docs.joinmastodon.org/methods/timelines/lists/
7878
*/
79-
remove: Method<void, string>;
79+
remove: Method<void>;
8080
}
8181

8282
export interface ListsResource {

src/mastodon/rest/v1/statuses.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export type UpdateStatusParams = CreateStatusParams & {
106106

107107
export interface ReblogStatusParams {
108108
/** any visibility except limited or direct (i.e. public, unlisted, private). Defaults to public. Currently unused in UI. */
109-
readonly visibility: StatusVisibility;
109+
readonly visibility?: StatusVisibility | null;
110110
}
111111

112112
export interface TranslateStatusParams {
@@ -228,9 +228,9 @@ export interface Statuses$SelectResource {
228228
unmute: Method<Status>;
229229

230230
/**
231-
* Re-share a status.
231+
* Boost a status
232232
* @return Status
233-
* @see https://docs.joinmastodon.org/api/rest/statuses/#post-api-v1-statuses-id-reblog
233+
* @see https://docs.joinmastodon.org/methods/statuses/#boost
234234
*/
235235
reblog: Method<Status, ReblogStatusParams, HttpMetaParams<"json">>;
236236

0 commit comments

Comments
 (0)