Skip to content

Commit 0d3cf50

Browse files
committed
narrow type
1 parent d9e1785 commit 0d3cf50

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

apps/demos/Demos/Common/PopupAndNotificationsOverview/React/House.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ const position: IPositionProps = {
2121

2222
interface HouseProps {
2323
house: HouseType;
24-
show: any;
25-
key: string;
24+
show: (house: HouseType) => void;
2625
}
2726

2827
export function House(props: HouseProps) {

apps/demos/Demos/DropDownButton/Overview/React/ColorIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22

33
interface ColorIconProps {
44
color: string;
5-
onClick: Function;
5+
onClick: (color: string) => void;
66
}
77

88
const ColorIcon = ({ color, onClick }: ColorIconProps) => (

0 commit comments

Comments
 (0)