Repository navigation
feat: implement Telegram message entities parsing #20
Annotations
9 errors
|
Typecheck
Process completed with exit code 1.
|
|
Typecheck:
tsconfig.test.json#L9
Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
|
|
Typecheck:
src/parser.ts#L188
Property 'custom_emoji_id' does not exist on type 'TelegramMessageEntity'.
|
|
Typecheck:
src/parser.ts#L187
Property 'custom_emoji_id' does not exist on type 'TelegramMessageEntity'.
|
|
Typecheck:
src/parser.ts#L185
Property 'url' does not exist on type 'TelegramMessageEntity'.
|
|
Typecheck:
src/parser.ts#L185
Property 'url' does not exist on type 'TelegramMessageEntity'.
|
|
Typecheck:
src/parser.ts#L183
Property 'language' does not exist on type 'TelegramMessageEntity'.
|
|
Typecheck
Process completed with exit code 1.
|
|
test/parser.test.ts > parseMessageEntities > maps link, codeblock and custom emoji entities:
test/parser.test.ts#L69
AssertionError: expected { type: 'fragment', …(1) } to deeply equal { type: 'fragment', …(1) }
- Expected
+ Received
@@ -17,11 +17,16 @@
"entity": {
"alt": "🙂",
"id": "42",
"type": "custom-emoji",
},
- "subelements": [],
+ "subelements": [
+ {
+ "type": "plain",
+ "value": "🙂",
+ },
+ ],
"type": "text",
},
{
"entity": {
"language": "ts",
❯ test/parser.test.ts:69:50
|