From e0d11b795e366e3aceb7743e5128ccaeaa09a8eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20D=C4=85browski?= Date: Sat, 9 Mar 2024 01:24:01 +0100 Subject: [PATCH] fix: explicit type exports in @visx/responsive (#1809) --- packages/visx-responsive/src/index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/visx-responsive/src/index.ts b/packages/visx-responsive/src/index.ts index 736efdf8b..6eac951b7 100644 --- a/packages/visx-responsive/src/index.ts +++ b/packages/visx-responsive/src/index.ts @@ -1,6 +1,10 @@ export { default as ParentSize } from './components/ParentSize'; export { default as ScaleSVG } from './components/ScaleSVG'; -export { default as withParentSize, WithParentSizeProvidedProps } from './enhancers/withParentSize'; -export { default as withScreenSize, WithScreenSizeProvidedProps } from './enhancers/withScreenSize'; -export { default as useParentSize, UseParentSizeConfig } from './hooks/useParentSize'; -export { default as useScreenSize, UseScreenSizeConfig } from './hooks/useScreenSize'; +export { default as withParentSize } from './enhancers/withParentSize'; +export type { WithParentSizeProvidedProps } from './enhancers/withParentSize'; +export { default as withScreenSize } from './enhancers/withScreenSize'; +export type { WithScreenSizeProvidedProps } from './enhancers/withScreenSize'; +export { default as useParentSize } from './hooks/useParentSize'; +export type { UseParentSizeConfig } from './hooks/useParentSize'; +export { default as useScreenSize } from './hooks/useScreenSize'; +export type { UseScreenSizeConfig } from './hooks/useScreenSize';