(method: RpcMethod)
| 466 | } |
| 467 | |
| 468 | function 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 | |
| 478 | async function generateRpc(schemaPath?: string, sessionEventsSchema?: JSONSchema7): Promise<void> { |
| 479 | console.log("TypeScript: generating RPC types..."); |
no test coverage detected
searching dependent graphs…