Skip to content

Commit

Permalink
Export formatOptionLabel types (#5249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jun 30, 2022
1 parent 912692b commit 5d49f70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-paws-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-select': minor
---

Export `formatOptionLabel` types (i.e., `FormatOptionLabelMeta` and `FormatOptionLabelContext`).
3 changes: 2 additions & 1 deletion packages/react-select/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Select from './Select';
import { GroupBase } from './types';
import type { GroupBase } from './types';
import useStateManager from './useStateManager';

export { default } from './stateManager';
Expand Down Expand Up @@ -56,3 +56,4 @@ export type {
AriaOnFilter,
AriaOnFocus,
} from './accessibility';
export type { FormatOptionLabelContext, FormatOptionLabelMeta } from './Select';

0 comments on commit 5d49f70

Please sign in to comment.