Skip to content

Commit

Permalink
correct hook types
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Feb 28, 2024
1 parent a418e7a commit 02adc7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/UI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export type FocusControl = {
* - can be used outside of FocusLock
* @see {@link useFocusScope} for use cases inside of FocusLock
*/
export function useFocusController<Elements extends HTMLElement=HTMLElement>(...shards: ReadonlyArray<HTMLElement | {current:HTMLElement}>):FocusControl;
export function useFocusController<Elements extends HTMLElement=HTMLElement>(...shards: ReadonlyArray<HTMLElement | {current:HTMLElement | null}>):FocusControl;

/**
* returns FocusControl over the current FocusLock
Expand Down
2 changes: 1 addition & 1 deletion react-focus-lock.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export type FocusControl = {
* - can accept HTML elements or React Refs
* @see {@link useFocusScope} for use cases inside of FocusLock
*/
export function useFocusController<Elements extends HTMLElement=HTMLElement>(...shards: ReadonlyArray<HTMLElement | {current:HTMLElement}>):FocusControl;
export function useFocusController<Elements extends HTMLElement=HTMLElement>(...shards: ReadonlyArray<HTMLElement | {current:HTMLElement | null}>):FocusControl;

/**
* returns FocusControl over the current FocusLock
Expand Down

0 comments on commit 02adc7b

Please sign in to comment.