MCPcopy Create free account
hub / github.com/effect-app/libs / normalizeInputs

Function normalizeInputs

packages/effect-app/src/rpc/Invalidation.ts:29–31  ·  view source on GitHub ↗
(
  input: InvalidationKeyInput | ReadonlyArray<InvalidationKeyInput>
)

Source from the content-addressed store, hash-verified

27 Array.isArray(input) && input[0] !== undefined && typeof input[0] !== "string"
28
29const normalizeInputs = (
30 input: InvalidationKeyInput | ReadonlyArray<InvalidationKeyInput>
31): ReadonlyArray<InvalidationKey> => isBatch(input) ? input.map(normalizeKey) : [normalizeKey(input)]
32
33/**
34 * A single segment within an `InvalidationKey` array.

Callers 1

makeInvalidationSetFunction · 0.85

Calls 3

isBatchFunction · 0.85
normalizeKeyFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…