-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add FilterResult interface and Status.filtered optional prop
* update Filter interface * fix: wholeWord type to boolean * feat: FilterResult interface; filtered optional status prop * chore(release): 4.7.3 [skip ci] ## [4.7.3](v4.7.2...v4.7.3) (2022-12-02) ### Bug Fixes * Use builtin Object.fromEntries ([6a64264](6a64264)) * chore: add eslintcache (#737) * update Filter interface * fix: wholeWord type to boolean * fix: import type * refactor: fix imports * refactor: fix linting complaints * fix: wrong property casing Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net> Co-authored-by: Simon He <57086651+Simon-He95@users.noreply.github.com>
- Loading branch information
1 parent
52f8419
commit 581d4f9
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { Filter } from '.'; | ||
|
||
/** | ||
* Represents a filter whose keywords matched a given status. | ||
* @see https://docs.joinmastodon.org/entities/filter-result/ | ||
*/ | ||
export interface FilterResult { | ||
/** The filter that was matched. */ | ||
filter: Filter; | ||
/** The keyword within the filter that was matched. */ | ||
keywordMatches: string[] | null; | ||
/** The status ID within the filter that was matched. */ | ||
statusMatches: string[] | null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters