@gramio/format
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -12,2 +12,3 @@ import { TelegramMessageEntity, TelegramUser } from "@gramio/types"; | ||
toString(): string; | ||
toJSON(): string; | ||
static [Symbol.hasInstance](value: unknown): value is FormattableString; | ||
@@ -14,0 +15,0 @@ } |
@@ -30,2 +30,5 @@ "use strict"; | ||
} | ||
toJSON() { | ||
return this.text; | ||
} | ||
// ![INFO] - https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html#instanceof-narrowing-through-symbolhasinstance | ||
@@ -32,0 +35,0 @@ static [Symbol.hasInstance](value) { |
{ | ||
"name": "@gramio/format", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Library for formatting text for Telegram Bot API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://gramio.netlify.app/formatting.html", |
24173
585