Members
BooleanFilterName :string
Enum of boolean filter names for filtering toots by property.
Type:
- string
MediaCategory :string
Enum of Mastodon API media category strings.
Type:
- string
NonScoreWeightName :string
Enum of non-score weight names (used for sliders and scoring adjustments).
Order influences the order of the score weighting sliders in the demo app.
Type:
- string
ScoreName :string
Enum of all scoring categories for which there is a scorer. Also Used for UI display and filtering.
Type:
- string
TrendingType :string
Enum of trending data types that can be fetched from the API. *
Type:
- string
TypeFilterName :string
Enum of type filter names for filtering toots by type (e.g., audio, bot, images, etc.).
The values have spaces for better presentation in the demo app.
Type:
- string
isNonScoreWeightName
True if argument is a member of NonScoreWeightName enum.
isScoreName
True if argument is a member of ScoreName enum.
isTypeFilterName
True if argument is a member of TypeFilterName enum.
Methods
isAccessTokenRevokedError(e) → {boolean}
Returns true if the error is an access token revoked error.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | unknown | The error to check. |
Returns:
True if the error is an access token revoked error.
- Type
- boolean
isRateLimitError(e) → {boolean}
Returns true if the error is a rate limit error.
Parameters:
Name | Type | Description |
---|---|---|
e |
Error | unknown | The error to check. |
Returns:
True if the error is a rate limit error.
- Type
- boolean
isValueInStringEnum(strEnum) → {function}
Generate a function to check if a value exists in a string enum.
Parameters:
Name | Type | Description |
---|---|---|
strEnum |
Record.<string, E> | The enum object. |
Returns:
The checker function.
- Type
- function
isWeightName()
True if argument is a member of ScoreName or NonScoreWeightName enums.