Type alias AttributeType

AttributeType: {
    [key: string]: string;
}

A type for attributes.

A BBCode attribute is a key-value pair, where the key is a string and the value is a string. A tag can have multiple attributes.

Type declaration

  • [key: string]: string

Example

`[img width=100 height=100]https://example.com/image.png[/img]` -> `{ width: "100", height: "100" }`

Generated using TypeDoc