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

Function resultTypeName

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

Source from the content-addressed store, hash-verified

441}
442
443function resultTypeName(method: RpcMethod): string {
444 const schema = getMethodResultSchema(method);
445 const externalRef = schema?.$ref ? parseExternalSchemaRef(schema.$ref) : undefined;
446 return externalRef?.definitionName ?? getRpcSchemaTypeName(schema, method.rpcMethod.split(".").map(toPascalCase).join("") + "Result");
447}
448
449function tsNullableResultTypeName(method: RpcMethod): string | undefined {
450 const resultSchema = getMethodResultSchema(method);

Callers 2

tsResultTypeFunction · 0.70
generateRpcFunction · 0.70

Calls 4

parseExternalSchemaRefFunction · 0.85
getRpcSchemaTypeNameFunction · 0.85
joinMethod · 0.80
getMethodResultSchemaFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…