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

Function resultTaskType

scripts/codegen/csharp.ts:1483–1486  ·  view source on GitHub ↗

Returns the Task or Task string for an outgoing-call wrapper's result type.

(method: RpcMethod)

Source from the content-addressed store, hash-verified

1481
1482/** Returns the Task<T> or Task string for an outgoing-call wrapper's result type. */
1483function resultTaskType(method: RpcMethod): string {
1484 const schema = getMethodResultSchema(method);
1485 return !isVoidSchema(schema) ? `Task<${resolvedResultTypeName(method)}>` : "Task";
1486}
1487
1488function paramsTypeName(method: RpcMethod): string {
1489 return getCSharpSchemaTypeName(resolveMethodParamsSchema(method), `${typeToClassName(method.rpcMethod)}Request`);

Calls 3

isVoidSchemaFunction · 0.85
resolvedResultTypeNameFunction · 0.85
getMethodResultSchemaFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…