MCPcopy Create free account
hub / github.com/VPSDance/ai-proxy-rules / isPayloadObject

Function isPayloadObject

scripts/sync/parsers.ts:220–227  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

218 target.processName.push(...source.processName);
219 target.ipCidr.push(...source.ipCidr);
220 target.ipCidr6.push(...source.ipCidr6);
221 target.asn.push(...source.asn);
222}
223
224function isPayloadObject(value: unknown): value is { payload: string[] } {
225 if (!value || typeof value !== "object" || !("payload" in value)) {
226 return false;
227 }
228
229 const payload = (value as { payload: unknown }).payload;
230 return Array.isArray(payload) && payload.every((item) => typeof item === "string");

Callers 1

parseClashYamlRulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected