Skip to content

Commit

Permalink
feat(): adjust types
Browse files Browse the repository at this point in the history
  • Loading branch information
megheaiulian committed Mar 31, 2023
1 parent b35e06d commit 9f74ebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/use-focus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface FocusState {
}
export interface UseFocusOpts {
disabled?: boolean;
onFocus: (focused: boolean) => void;
onFocus?: (focused: boolean) => void;
}
export const useFocus = ({ disabled, onFocus }: UseFocusOpts) => {
const [focusState, setState] = useState<FocusState>(),
Expand Down
2 changes: 1 addition & 1 deletion src/use-position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const position = ({
};

interface UsePositionOpts extends Omit<PositionOpts, 'anchor'> {
anchor?: (() => HTMLElement) | HTMLElement | null;
anchor?: (() => HTMLElement | null) | HTMLElement | null;
}
export const usePosition = ({
anchor: anchorage,
Expand Down

0 comments on commit 9f74ebe

Please sign in to comment.