Skip to content

Commit

Permalink
type: export AffixRef interface (ant-design#47982)
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan authored and CooperHash committed Mar 25, 2024
1 parent 68e80ad commit 072f06b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/affix/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface AffixState {
prevTarget: Window | HTMLElement | null;
}

interface AffixRef {
export interface AffixRef {
updatePosition: ReturnType<typeof throttleByAnimationFrame>;
}

Expand Down
2 changes: 1 addition & 1 deletion components/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 072f06b

Please sign in to comment.