Convert src/shared/boolean_attributes.ts to JavaScript

pull/8569/head
S. Elliott Johnson 3 years ago
parent ed6d751e28
commit 760d336a32

@ -1,35 +1,37 @@
const _boolean_attributes = [
'allowfullscreen',
'allowpaymentrequest',
'async',
'autofocus',
'autoplay',
'checked',
'controls',
'default',
'defer',
'disabled',
'formnovalidate',
'hidden',
'inert',
'ismap',
'loop',
'multiple',
'muted',
'nomodule',
'novalidate',
'open',
'playsinline',
'readonly',
'required',
'reversed',
'selected'
] as const;
export type BooleanAttributes = (typeof _boolean_attributes)[number];
'allowfullscreen',
'allowpaymentrequest',
'async',
'autofocus',
'autoplay',
'checked',
'controls',
'default',
'defer',
'disabled',
'formnovalidate',
'hidden',
'inert',
'ismap',
'loop',
'multiple',
'muted',
'nomodule',
'novalidate',
'open',
'playsinline',
'readonly',
'required',
'reversed',
'selected'
];
/**
* List of HTML boolean attributes (e.g. `<input disabled>`).
* Source: https://html.spec.whatwg.org/multipage/indices.html
* @type {Set<string>}
*/
export const boolean_attributes: Set<string> = new Set([..._boolean_attributes]);
export const boolean_attributes = new Set([..._boolean_attributes]);
/** @typedef {Class<_boolean_attributes>} BooleanAttributes */

Loading…
Cancel
Save