Type alias ElementDataset

ElementDataset: {
    [name: string]: string;
}

An object which represents a dataset for a virtual DOM element.

The names of the dataset properties will be automatically prefixed with data- before being added to the node, e.g. { thing: '12' } will be rendered as data-thing='12' in the DOM element.

Dataset property names should not contain spaces.

Type declaration

  • [name: string]: string