Skip to content

Commit

Permalink
fix: wholeWord is a boolean, not a string
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnyTheCarrot committed Apr 8, 2023
1 parent 56d8bdb commit 1fc082a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mastodon/v2/repositories/filter-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export interface CreateFilterParams {
readonly keywordsAttributes?: readonly {
/** String. A keyword to be added to the newly-created filter group. */
readonly keyword?: string | null;
/** String. Whether the keyword should consider word boundaries. */
readonly wholeWord?: string | null;
/** Boolean. Whether the keyword should consider word boundaries. */
readonly wholeWord?: boolean | null;
}[];
}

Expand All @@ -40,8 +40,8 @@ export interface UpdateFilterParams {
readonly id?: string | null;
/** String. A keyword to be added to the newly-created filter group. */
readonly keyword?: string | null;
/** String. Whether the keyword should consider word boundaries. */
readonly wholeWord?: string | null;
/** Boolean. Whether the keyword should consider word boundaries. */
readonly wholeWord?: boolean | null;
/** Boolean. If true, will remove the keyword with the given ID */
readonly _destroy?: boolean | null;
}[];
Expand Down

0 comments on commit 1fc082a

Please sign in to comment.