> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# KebabCasePaths

```ts theme={null}
type KebabCasePaths<T> = T extends Record<string, unknown> ? { [K in keyof T]: T[K] extends { value: unknown } ? K & string : T[K] extends Record<string, unknown> ? `${K & string}-${KebabCasePaths<T[K]> & string}` : K & string }[keyof T] : never;
```

A type that recursively converts a nested object to a flattened object with kebab-case keys.

## Type Parameters

| Type Parameter |
| -------------- |
| `T`            |

## Example

```ts theme={null}
type MyObject = {
  a: {
    b: {
      cKey: string;
    };
  };
};

type Flattened = Flattened<MyObject>;
// { 'a-b-cKey': string }
```
