# DataPartNode

Represents a data attribute part (e.g. `data-foo="${value}"`).

## Signatures

```ts
export declare class DataPartNode {
    readonly _tag: "data";
    readonly index: number;
    constructor(index: number);
}
```

## Why

Data records map to the native `dataset`/`data-*` surface without replacing
unrelated attributes.

## Ownership and lifetime

The part stores one input index; its render Scope owns local updates.

## Constructor

Creates data-record syntax.

## Property: _tag

Data-record discriminant.

## Property: _tag: Why

Selects native dataset and safe `data-*` serialization.

## Property: _tag: Ownership and lifetime

Immutable AST metadata.

## Property: index

Interpolation index producing the data record.

## Property: index: Why

Locates the record producer for local dataset updates.

## Property: index: Ownership and lifetime

Immutable scalar metadata; the render Scope owns the producer.

## Examples

```ts
import { DataPartNode } from "@typed/template/Template"

const part = new DataPartNode(0)
```
