Skip to main content
On this pageConstants

Ui/Tabs/test

Constants

FocusTab

constsource
/** Moves focus to the tab at the given index. */
const FocusTab: LayeredCommandDefinitionWithArgs<"Tabs/FocusTab", {
  id: String
  index: Number
}, {
  _tag: "CompletedFocusTab"
}> | DefinitionWithArgsNameKeyed<"Tabs/FocusTab", {
  id: String
  index: Number
}, Effect<{
  _tag: "CompletedFocusTab"
}, never, Handler<"Tabs/FocusTab", {
  id: string
  index: number
}, {
  _tag: "CompletedFocusTab"
}>>> | DefinitionWithArgs<"Tabs/FocusTab", {
  id: String
  index: Number
}, Pick<{
  id: string
  index: number
}, "id" | "index">, Effect<{
  _tag: "CompletedFocusTab"
}, never, Handler<"Tabs/FocusTab", {
  id: string
  index: number
}, {
  _tag: "CompletedFocusTab"
}>>> & Readonly<{
  layer: Layer<Handler<"Tabs/FocusTab", {
    id: string
    index: number
  }, {
    _tag: "CompletedFocusTab"
  }>, never, never>
}> & Readonly<{
  toLayer: ToLayer<"Tabs/FocusTab", {
    id: string
    index: number
  }, {
    _tag: "CompletedFocusTab"
  }>
}>