# PathToObj

`type` in `utils` · v0.4.0

<https://docs.seedcord.org/packages/utils/0.4.0/types/path-to-obj>

Converts a dot-notation path string into a nested object type with a specific leaf value.

## Declaration

```ts
type PathToObj<
    Path extends string,
    Value
> = Path extends `${infer Head}.${infer Tail}`
    ? { [K in Head]: PathToObj<Tail, Value> }
    : { [K in Path]: Value };
```
