mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-26 12:08:45 +00:00
rename selectFile with result MPPFile to selectFileOrThrow
This commit is contained in:
parent
6dbd12df59
commit
4693483c2b
@ -19,7 +19,7 @@
|
|||||||
* New extension `Flow.toMutableState`
|
* New extension `Flow.toMutableState`
|
||||||
* New extension `StateFlow.toMutableState`
|
* New extension `StateFlow.toMutableState`
|
||||||
* `JS`:
|
* `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`
|
* New function `selectFileOrNull` on top of `selectFile` from `common`
|
||||||
|
|
||||||
## 0.9.11
|
## 0.9.11
|
||||||
|
@ -5,7 +5,7 @@ import dev.inmo.micro_utils.common.selectFile
|
|||||||
import kotlinx.coroutines.CompletableDeferred
|
import kotlinx.coroutines.CompletableDeferred
|
||||||
import org.w3c.dom.HTMLInputElement
|
import org.w3c.dom.HTMLInputElement
|
||||||
|
|
||||||
suspend fun selectFile(
|
suspend fun selectFileOrThrow(
|
||||||
inputSetup: (HTMLInputElement) -> Unit = {}
|
inputSetup: (HTMLInputElement) -> Unit = {}
|
||||||
): MPPFile {
|
): MPPFile {
|
||||||
val result = CompletableDeferred<MPPFile>()
|
val result = CompletableDeferred<MPPFile>()
|
||||||
|
Loading…
Reference in New Issue
Block a user