Skip to content

Commit

Permalink
fix: CommandInput 타입 좁히기
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHyun-P committed Dec 13, 2023
1 parent 18e7766 commit 09a513d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/frontend/src/components/terminal/CommandInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ interface CommandInputProps {
handleInput: KeyboardEventHandler;
}

interface ForwardRefType {
focus: HTMLOrSVGElement["focus"];
scrollIntoView: Element["scrollIntoView"];
}
type ForwardRefType = Pick<HTMLSpanElement, "focus" | "scrollIntoView">;

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

0 comments on commit 09a513d

Please sign in to comment.