Open bennypowers opened 4 years ago
consider
const enum ColumnType { data = 'data', action = 'action', link = 'link', } interface ColumnBase { type: ColumnType; } /** * @element table-column * @attr {ColumnType} data-type */ export class TableColumn extends HTMLElement { dataset: DOMStringMap & Column; }
I'd expect editor tools to throw on <table-column action="💩">, but it seems to validate.
<table-column action="💩">
What is the proper way to type data attributes?
consider
I'd expect editor tools to throw on
<table-column action="💩">
, but it seems to validate.What is the proper way to type data attributes?