diff --git a/components/affix/index.tsx b/components/affix/index.tsx index 7230e9aaecc1..7f25f749c7d3 100644 --- a/components/affix/index.tsx +++ b/components/affix/index.tsx @@ -53,7 +53,7 @@ interface AffixState { prevTarget: Window | HTMLElement | null; } -interface AffixRef { +export interface AffixRef { updatePosition: ReturnType; } diff --git a/components/index.ts b/components/index.ts index 823eea853501..c1f5f82764f9 100644 --- a/components/index.ts +++ b/components/index.ts @@ -1,7 +1,7 @@ export type { Breakpoint } from './_util/responsiveObserver'; export type { GetProps, GetRef, GetProp } from './_util/type'; export { default as Affix } from './affix'; -export type { AffixProps } from './affix'; +export type { AffixProps, AffixRef } from './affix'; export { default as Alert } from './alert'; export type { AlertProps } from './alert'; export { default as Anchor } from './anchor';