com.olvind.mui.std.IteratorYieldResult.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.std
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait IteratorYieldResult[TYield] extends StObject {
/* standard es2015.iterable */
var done: js.UndefOr[false] = js.undefined
/* standard es2015.iterable */
var value: TYield
}
object IteratorYieldResult {
inline def apply[TYield](value: TYield): IteratorYieldResult[TYield] = {
val __obj = js.Dynamic.literal(value = value.asInstanceOf[js.Any])
__obj.asInstanceOf[IteratorYieldResult[TYield]]
}
@scala.inline
implicit open class MutableBuilder[Self <: IteratorYieldResult[?], TYield] (val x: Self & IteratorYieldResult[TYield]) extends AnyVal {
inline def setDone(value: false): Self = StObject.set(x, "done", value.asInstanceOf[js.Any])
inline def setDoneUndefined: Self = StObject.set(x, "done", js.undefined)
inline def setValue(value: TYield): Self = StObject.set(x, "value", value.asInstanceOf[js.Any])
}
}