MCPcopy Create free account
hub / github.com/Effect-TS/effect / inlineTuple

Function inlineTuple

packages/effect/src/ui/Query.ts:4492–4503  ·  view source on GitHub ↗
(def: QueryDef, tuple: unknown)

Source from the content-addressed store, hash-verified

4490 }
4491
4492 const inlineTuple = (def: QueryDef, tuple: unknown): unknown => {
4493 if (
4494 !Array.isArray(tuple) || tuple[1] !== 2 || typeof tuple[0] !== "string"
4495 ) {
4496 return tuple
4497 }
4498 const raw = parsed.get(def.name)?.get(tuple[0])
4499 if (raw === undefined || raw[1] !== 0) return tuple
4500 return def.list === undefined
4501 ? [raw[0], 0, raw[2], raw[3], false]
4502 : [raw[0], 0, raw[2], raw[3], false, tuple[2] === true]
4503 }
4504
4505 const inline = (component: unknown, encoded: unknown): unknown => {
4506 const bound = queryCore.boundOf(

Callers 1

inlineFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected