MCPcopy Create free account
hub / github.com/Kong/httpsnippet / addTarget

Function addTarget

src/targets/targets.ts:147–152  ·  view source on GitHub ↗
(target: Target)

Source from the content-addressed store, hash-verified

145};
146
147export const addTarget = (target: Target) => {
148 if (!isTarget(target)) {
149 return;
150 }
151 targets[target.info.key] = target;
152};
153
154export const isClient = (client: Client): client is Client => {
155 if (!client) {

Callers 1

targets.test.tsFile · 0.90

Calls 1

isTargetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…