diff --git a/packages/dnb-eufemia/src/components/dropdown/stories/Dropdown.stories.tsx b/packages/dnb-eufemia/src/components/dropdown/stories/Dropdown.stories.tsx index b612481f121..e6640c42534 100644 --- a/packages/dnb-eufemia/src/components/dropdown/stories/Dropdown.stories.tsx +++ b/packages/dnb-eufemia/src/components/dropdown/stories/Dropdown.stories.tsx @@ -1006,6 +1006,17 @@ export const GlobalStatusExample = () => { ) } +export const TypesExample = () => { + interface MyInterface { + content: string + selected_key: string + } + + const myData: MyInterface[] = [] + + return +} + export function InDialog() { const list = Array(30).fill('Content') return ( diff --git a/packages/dnb-eufemia/src/fragments/drawer-list/DrawerList.d.ts b/packages/dnb-eufemia/src/fragments/drawer-list/DrawerList.d.ts index cdad59a81cc..071df9ebd98 100644 --- a/packages/dnb-eufemia/src/fragments/drawer-list/DrawerList.d.ts +++ b/packages/dnb-eufemia/src/fragments/drawer-list/DrawerList.d.ts @@ -16,7 +16,7 @@ export type DrawerListValue = string | number; /** @deprecated use `DrawerListDataArrayObject` */ export type DrawerListDataObject = DrawerListDataArrayObject; export type DrawerListDataArrayObject = { - [customProperty: string]: unknown; + [customProperty: string]: any; selected_value?: string | React.ReactNode; selectedKey?: string | number; selected_key?: string | number;