/**
 * `<img>` complains about crossOrigin being typed as `string` in `HTMLImageElement`.
 * It appears to be an [unaddressed TS issue](https://github.com/microsoft/TypeScript/issues/39829).
 *
 * @see https://github.com/getproper/diurnal/pull/20#discussion_r814571028
 */
export type HTMLImage = Omit<
  React.HTMLProps<HTMLImageElement>,
  'className' | 'crossOrigin'
> & {
  crossOrigin?: '' | 'anonymous' | 'use-credentials';
};
