diff --git a/CHANGELOG.md b/CHANGELOG.md index 0896b84dfb3..1a8003d5c9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,7 @@ * New extension `Flow.toMutableState` * New extension `StateFlow.toMutableState` * `JS`: - * New function `selectFile` on top of `selectFile` from `common` + * New function `selectFileOrThrow` on top of `selectFile` from `common` * New function `selectFileOrNull` on top of `selectFile` from `common` ## 0.9.11 diff --git a/coroutines/src/jsMain/kotlin/dev.inmo.micro_utils.coroutines/SelectFile.kt b/coroutines/src/jsMain/kotlin/dev.inmo.micro_utils.coroutines/SelectFile.kt index e9ee57f3b42..2e2ab2f95a9 100644 --- a/coroutines/src/jsMain/kotlin/dev.inmo.micro_utils.coroutines/SelectFile.kt +++ b/coroutines/src/jsMain/kotlin/dev.inmo.micro_utils.coroutines/SelectFile.kt @@ -5,7 +5,7 @@ import dev.inmo.micro_utils.common.selectFile import kotlinx.coroutines.CompletableDeferred import org.w3c.dom.HTMLInputElement -suspend fun selectFile( +suspend fun selectFileOrThrow( inputSetup: (HTMLInputElement) -> Unit = {} ): MPPFile { val result = CompletableDeferred()