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

Function paramsTypeName

scripts/codegen/typescript.ts:468–476  ·  view source on GitHub ↗
(method: RpcMethod)

Source from the content-addressed store, hash-verified

466}
467
468function paramsTypeName(method: RpcMethod): string {
469 const fallback = rpcRequestFallbackName(method);
470 if (method.rpcMethod.startsWith("session.") && method.params?.$ref) {
471 return fallback;
472 }
473 const schema = getMethodParamsSchema(method);
474 const externalRef = schema?.$ref ? parseExternalSchemaRef(schema.$ref) : undefined;
475 return externalRef?.definitionName ?? getRpcSchemaTypeName(schema, fallback);
476}
477
478async function generateRpc(schemaPath?: string, sessionEventsSchema?: JSONSchema7): Promise<void> {
479 console.log("TypeScript: generating RPC types...");

Callers 4

generateRpcFunction · 0.70
emitGroupFunction · 0.70

Calls 4

rpcRequestFallbackNameFunction · 0.85
parseExternalSchemaRefFunction · 0.85
getRpcSchemaTypeNameFunction · 0.85
getMethodParamsSchemaFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…