From 3193ef58fd58d13032c84e39b87ed92e1c7e38a4 Mon Sep 17 00:00:00 2001 From: mybearworld <130385691+mybearworld@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:40:26 +0200 Subject: [PATCH] Fix JSR errors --- patterns.ts | 2 +- rich/post.ts | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/patterns.ts b/patterns.ts index 91228f3..b708bf5 100644 --- a/patterns.ts +++ b/patterns.ts @@ -153,7 +153,7 @@ export const parseArgs = ( * 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" ? diff --git a/rich/post.ts b/rich/post.ts index 86ff1ec..bcf1c4d 100644 --- a/rich/post.ts +++ b/rich/post.ts @@ -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.