# generateTypeScriptSdk

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/sdk-generator.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/sdk-generator.ts#L97)

Generate the full sdk.ts source for a spec.

## Signature

```ts
function generateTypeScriptSdk(spec: {
  info?: { title?: string; version?: string };
  servers?: Array<{ url?: string }>;
  paths?: Record<string, Record<string, OpenApiOperation>>;
  components?: { schemas?: Record<string, JsonSchema> };
}): string
```

## Parameters

| Name | Type |
|---|---|
| `spec` | `{
  info?: { title?: string; version?: string };
  servers?: Array<{ url?: string }>;
  paths?: Record<string, Record<string, OpenApiOperation>>;
  components?: { schemas?: Record<string, JsonSchema> };
}` |

**Returns:** `string`
