MCPcopy
hub / github.com/brimdata/zui / select

Function select

apps/zui/src/core/main/select.ts:4–9  ·  view source on GitHub ↗
(
  selector: T
)

Source from the content-addressed store, hash-verified

2import {getMainObject} from "./index"
3
4export function select<T extends (state: State, ...args: any) => any>(
5 selector: T
6): ReturnType<T> {
7 const main = getMainObject()
8 return selector(main.store.getState())
9}

Callers 15

allMethod · 0.90
getMethod · 0.90
allMethod · 0.90
refMethod · 0.90
test.tsFile · 0.50
test.tsFile · 0.50
createWaitForSelectorFunction · 0.50
run.tsFile · 0.50
handlers.tsFile · 0.50
handlers.tsFile · 0.50
handlers.tsFile · 0.50
pins.tsFile · 0.50

Calls 2

getMainObjectFunction · 0.90
selectorFunction · 0.85

Tested by

no test coverage detected