Skip to content

Commit dbfdadf

Browse files
committed
fix: Mark nullable parameters optional for consistency
1 parent 3364148 commit dbfdadf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/mastodon/entities/v1/quote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export interface Quote {
1919
/* The state of the quote */
2020
state: QuoteState;
2121
/* The status being quoted, if the quote has been accepted. This will be null, unless the state attribute is accepted. */
22-
quotedStatus: Status | null;
22+
quotedStatus?: Status | null;
2323
}

src/mastodon/entities/v1/shallow-quote.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ export interface ShallowQuote {
88
/* The state of the quote. */
99
state: QuoteState;
1010
/* The identifier of the status being quoted, if the quote has been accepted. This will be null, unless the state attribute is accepted. */
11-
quotedStatusId: string | null;
11+
quotedStatusId?: string | null;
1212
}

src/mastodon/entities/v1/status.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface Status {
8080
/** How many replies this status has received. */
8181
repliesCount: number;
8282
/** Information about the status being quoted, if any */
83-
quote: Quote | ShallowQuote | null;
83+
quote?: Quote | ShallowQuote | null;
8484

8585
/** A link to the status's HTML representation. */
8686
url?: string | null;

0 commit comments

Comments
 (0)