From 3e075b5299fa5a0ed4c970c11014bdb4b7724c20 Mon Sep 17 00:00:00 2001 From: ilkaydnc Date: Tue, 21 Feb 2023 14:23:31 +0300 Subject: [PATCH] Add correct type definition to `placement` prop --- src/Dropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dropdown.tsx b/src/Dropdown.tsx index 8853529..aefce5c 100644 --- a/src/Dropdown.tsx +++ b/src/Dropdown.tsx @@ -32,7 +32,7 @@ export interface DropdownProps animation?: AnimationType; align?: AlignType; overlayStyle?: React.CSSProperties; - placement?: string; + placement?: keyof typeof Placements; placements?: BuildInPlacements; overlay?: (() => React.ReactElement) | React.ReactElement; trigger?: ActionType | ActionType[];