Skip to content

Commit

Permalink
Fix JSR errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mybearworld committed Aug 7, 2024
1 parent fba88b6 commit 3193ef5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const parseArgs = <const TPattern extends Pattern>(
* Turns the pattern type into a human readable format.
* @param patternType The pattern type.
*/
export const stringifyPatternType = (patternType: PatternType) => {
export const stringifyPatternType = (patternType: PatternType): string => {
return (
typeof patternType === "string" ?
patternType === "full" ?
Expand Down
12 changes: 0 additions & 12 deletions rich/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,6 @@ export class RichPost implements Post {
return this.reply_to;
}

/**
* The representation of the post with only its basic properties, notably
* without the bot token.
* @example
* ```js
* JSON.stringify(post)
* ```
*/
toJSON() {
return { ...this, _bot: undefined };
}

/**
* Listen to an event that occurs.
* @param event The event to listen for.
Expand Down

0 comments on commit 3193ef5

Please sign in to comment.