Update output types of DataTree builders
This commit is contained in:
parent
9cceb44a90
commit
9a24e1e392
@ -102,7 +102,7 @@ public fun <T : Any> DataSource(
|
|||||||
type: KType,
|
type: KType,
|
||||||
parent: CoroutineScope,
|
parent: CoroutineScope,
|
||||||
block: DataSourceBuilder<T>.() -> Unit,
|
block: DataSourceBuilder<T>.() -> Unit,
|
||||||
): DataSource<T> {
|
): DataSourceBuilder<T> {
|
||||||
val tree = DataTreeBuilder<T>(type, parent.coroutineContext)
|
val tree = DataTreeBuilder<T>(type, parent.coroutineContext)
|
||||||
tree.block()
|
tree.block()
|
||||||
return tree
|
return tree
|
||||||
@ -112,7 +112,7 @@ public fun <T : Any> DataSource(
|
|||||||
public inline fun <reified T : Any> DataSource(
|
public inline fun <reified T : Any> DataSource(
|
||||||
parent: CoroutineScope,
|
parent: CoroutineScope,
|
||||||
crossinline block: DataSourceBuilder<T>.() -> Unit,
|
crossinline block: DataSourceBuilder<T>.() -> Unit,
|
||||||
): DataSource<T> = DataSource(typeOf<T>(), parent) { block() }
|
): DataSourceBuilder<T> = DataSource(typeOf<T>(), parent) { block() }
|
||||||
|
|
||||||
@Suppress("FunctionName")
|
@Suppress("FunctionName")
|
||||||
public suspend inline fun <reified T : Any> DataSource(
|
public suspend inline fun <reified T : Any> DataSource(
|
||||||
|
Loading…
Reference in New Issue
Block a user