Skip to content

Commit

Permalink
Use react type
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jun 25, 2024
1 parent 3c453a9 commit 2e2f38c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/dataviews/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/**
* External dependencies
*/
import type { ReactElement, ReactNode } from 'react';
import type { ReactElement, ReactNode, Dispatch, SetStateAction } from 'react';

export type setSelection = (
selection: string[] | ( ( prevState: string[] ) => string[] )
) => void;
export type setSelection = Dispatch< SetStateAction< string[] > >;

export type SortDirection = 'asc' | 'desc';

Expand Down

0 comments on commit 2e2f38c

Please sign in to comment.