diff --git a/src/types.ts b/src/types.ts index 99802717..47839204 100644 --- a/src/types.ts +++ b/src/types.ts @@ -14,7 +14,7 @@ import { import { ALIGN_VALUES, SIZES } from './constants'; -export type Align = typeof ALIGN_VALUES[number]; +export type Align = (typeof ALIGN_VALUES)[number]; export type AllowNew = | boolean @@ -41,7 +41,7 @@ export type SelectHint = ( event: KeyboardEvent ) => boolean; -export type Size = typeof SIZES[number]; +export type Size = (typeof SIZES)[number]; export type TypeaheadChildren = | ReactNode