# ChildDoc

type in `@dioramajs/diorama/effects`

```ts
import type { ChildDoc } from '@dioramajs/diorama/effects'
```

What the effect reads from or drives in the element's children, not a param: an attribute
(`{ attribute: 'data-dio-src' }`) or a child element (`{ element: 'input[type="range"]' }`).

```ts
type ChildDoc = { readonly attribute: string; readonly description: string; readonly element?: never } | { readonly attribute?: never; readonly description: string; readonly element: string }
```

Also exported from `@dioramajs/effects`.

Defined in [packages/effects/src/doc.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/doc.ts#L43).
