fix: fix a lot of declaration semantic errors (#7194)

This commit is contained in:
Joshua Chen 2022-04-17 23:44:20 +08:00 committed by GitHub
parent b154318c28
commit 7f06857e46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 62 additions and 61 deletions

View file

@ -42,7 +42,8 @@ declare module '@endiliey/react-ideal-image' {
type ThemeKey = 'placeholder' | 'img' | 'icon' | 'noscript';
export interface ImageProps extends ComponentProps<'img'> {
export interface ImageProps
extends Omit<ComponentProps<'img'>, 'srcSet' | 'placeholder'> {
/**
* This function decides what icon to show based on the current state of the
* component.