From e3cb1e4fafb3fc99eb76830d2d1e2cd82aa15293 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 8 Dec 2024 09:16:56 +0600 Subject: [PATCH] add definedExternally in CloudStorage --- .../kotlin/dev/inmo/tgbotapi/webapps/cloud/CloudStorage.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/cloud/CloudStorage.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/cloud/CloudStorage.kt index 251858f616..b1410c61bf 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/cloud/CloudStorage.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/cloud/CloudStorage.kt @@ -18,11 +18,11 @@ external interface CloudStorage { ): CloudStorage fun removeItem( key: CloudStorageKey, - callback: (e: Any?, success: Boolean?) -> Unit + callback: (e: Any?, success: Boolean?) -> Unit = definedExternally ): CloudStorage fun removeItems( key: Array, - callback: (e: Any?, success: Boolean?) -> Unit + callback: (e: Any?, success: Boolean?) -> Unit = definedExternally ): CloudStorage fun getKeys( callback: (e: Any?, success: Array?) -> Unit