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

Function hasInternalMethods

scripts/codegen/typescript.ts:657–666  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

655
656 // Generate factory functions
657function hasInternalMethods(node: Record<string, unknown>): boolean {
658 for (const value of Object.values(node)) {
659 if (isRpcMethod(value)) {
660 if ((value as RpcMethod).visibility === "internal") return true;
661 } else if (typeof value === "object" && value !== null) {
662 if (hasInternalMethods(value as Record<string, unknown>)) return true;
663 }
664 }
665 return false;
666}
667
668 if (schema.server) {
669 lines.push(`/** Create typed server-scoped RPC methods (no session required). */`);

Callers 1

generateRpcFunction · 0.85

Calls 1

isRpcMethodFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…