Skip to content

Commit

Permalink
fix(Empty): added ReactNode type to icon prop
Browse files Browse the repository at this point in the history
  • Loading branch information
cassandrakesewa committed Jul 5, 2022
1 parent eb493b9 commit b7698e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/types/Empty.d.ts
@@ -1,15 +1,15 @@
import * as React from 'react';
import { IIcon } from './utils';

declare namespace Empty {
declare namespace Empty {
interface EmptyProps extends Omit<React.HTMLProps<Empty>, 'title'> {
title: React.ReactNode
children?: React.ReactNode
kind?: 'undefined' | 'large'
icon?: IIcon
button?: React.ReactNode
title: React.ReactNode;
children?: React.ReactNode;
kind?: 'undefined' | 'large';
icon?: IIcon | React.ReactNode;
button?: React.ReactNode;
}
}

declare class Empty extends React.Component<Empty.EmptyProps>{ }
export = Empty
declare class Empty extends React.Component<Empty.EmptyProps> {}
export = Empty;

0 comments on commit b7698e5

Please sign in to comment.