From 69edd91de783f5048ed35a5ca0eece942de80bc4 Mon Sep 17 00:00:00 2001 From: Heero <42873000+HeeroML@users.noreply.github.com> Date: Sat, 15 Jan 2022 16:20:37 +0100 Subject: [PATCH] Fixed issue with exactOptionalPropertyTypes (#14) * Fixed a issue with exactOptionalPropertyTypes * Update package.json Co-authored-by: Tecardo1 <42873000+Tecardo1@users.noreply.github.com> --- package.json | 2 +- source/i18n.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 32f07e85..30bf8206 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@grammyjs/i18n", - "version": "0.5.0", + "version": "0.5.1", "description": "Internationalization middleware for grammY and Telegraf", "keywords": [ "telegram bot", diff --git a/source/i18n.ts b/source/i18n.ts index ed1edaea..eaeacab8 100644 --- a/source/i18n.ts +++ b/source/i18n.ts @@ -14,7 +14,7 @@ const compile = require('compile-template'); interface MinimalMiddlewareContext { readonly from?: { readonly language_code?: string; - }; + } | undefined; readonly chat: unknown; readonly i18n: I18nContext;