MCPcopy Index your code
hub / github.com/github/copilot-sdk / isNullLike

Function isNullLike

scripts/codegen/utils.ts:428–434  ·  view source on GitHub ↗
(s: unknown)

Source from the content-addressed store, hash-verified

426}
427
428function isNullLike(s: unknown): boolean {
429 if (!s || typeof s !== "object") return false;
430 const obj = s as Record<string, unknown>;
431 if (obj.type === "null") return true;
432 if ("not" in obj && typeof obj.not === "object" && obj.not !== null && Object.keys(obj.not).length === 0) return true;
433 return false;
434}
435
436export function cloneSchemaForCodegen<T>(value: T): T {
437 if (Array.isArray(value)) {

Callers 1

getNullableInnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…