Skip to content

Commit

Permalink
Make useSelect dependencies not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
lipemat committed Apr 9, 2024
1 parent 97b5990 commit 5f4f887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordpress__data/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ not yet been saved.
*
* @link https://developer.wordpress.org/block-editor/reference-guides/packages/packages-data/#useselect
*/
export function select<T>( callback: ( selectFunction: typeof select ) => T, deps?: DependencyList ): T;
export function select<T>( callback: ( selectFunction: typeof select ) => T, deps: DependencyList ): T;

export function select<State, Methods extends SelectFunctions<State>>( store: string ): Methods;

Expand Down

0 comments on commit 5f4f887

Please sign in to comment.