Skip to content

Commit c2f33e1

Browse files
committed
fix: 버튼 요소 파라미터 any 타입을 텍스트와 버튼 파라미터 타입으로 수정
1 parent b29876b commit c2f33e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

design-system/ui/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface HeaderProps {
1616
}
1717

1818
// Button 타입 가드 함수 추가
19-
function isButtonElement(element: any): element is React.ReactElement<ButtonHTMLAttributes<HTMLButtonElement>> {
19+
function isButtonElement(element: ReactNode | Button): element is React.ReactElement<ButtonHTMLAttributes<HTMLButtonElement>> {
2020
return (
2121
React.isValidElement(element) &&
2222
typeof element.type === 'string' &&

0 commit comments

Comments
 (0)