# types/element.types.ts

> 8 lines of code and 3 definitions.

Tree: Site tree
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/tree#file-types-element-types-ts
Source text: https://banes-lab.com/assets/sources/source.b3da2e235190ac91d776d55873d60c4a45a254ce950238d8ca1a6a9369123e21.generated.txt

## Definitions

- `ElementChild` (type_alias_declaration, line 1, exported)
- `ElementSpec` (interface_declaration, line 3, exported)
- `ElementTag` (type_alias_declaration, line 10, exported)

## Source

```typescript
export type ElementChild = Element | string;

export interface ElementSpec {
    readonly attributes?: Readonly<Record<string, string>>;
    readonly children?: readonly ElementChild[];
    readonly className?: string;
    readonly text?: string;
}

export type ElementTag = keyof HTMLElementTagNameMap;
```
