feat: add fetchpriority to img attrs

pull/10388/head
ascorbic 3 years ago
parent d08e05bf7f
commit 3a06ac7396

@ -978,6 +978,7 @@ export interface HTMLImgAttributes extends HTMLAttributes<HTMLImageElement> {
alt?: string | undefined | null;
crossorigin?: 'anonymous' | 'use-credentials' | '' | undefined | null;
decoding?: 'async' | 'auto' | 'sync' | undefined | null;
fetchpriority?: 'auto' | 'high' | 'low' | undefined | null;
height?: number | string | undefined | null;
ismap?: boolean | undefined | null;
loading?: 'eager' | 'lazy' | undefined | null;

@ -49,6 +49,7 @@ export const PassiveDelegatedEvents = ['touchstart', 'touchmove', 'touchend'];
*/
export const AttributeAliases = {
// no `class: 'className'` because we handle that separately
fetchpriority: 'fetchPriority',
formnovalidate: 'formNoValidate',
ismap: 'isMap',
nomodule: 'noModule',

Loading…
Cancel
Save