Skip to content

Commit 09a513d

Browse files
committed
fix: CommandInput 타입 좁히기
[#279]
1 parent 18e7766 commit 09a513d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/frontend/src/components/terminal/CommandInput.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ interface CommandInputProps {
1616
handleInput: KeyboardEventHandler;
1717
}
1818

19-
interface ForwardRefType {
20-
focus: HTMLOrSVGElement["focus"];
21-
scrollIntoView: Element["scrollIntoView"];
22-
}
19+
type ForwardRefType = Pick<HTMLSpanElement, "focus" | "scrollIntoView">;
2320

2421
const CommandInput = forwardRef<ForwardRefType, CommandInputProps>(
2522
({ gitRef, handleInput }, ref) => {

0 commit comments

Comments
 (0)