Skip to content

Commit

Permalink
chore: update TS
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Oct 21, 2024
1 parent 2c95ab0 commit 898d352
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ type CloseCallback = Pick<ModalProps, 'onCancel'>;
* ```
*/
export interface ModalProps
extends Omit<AntdModalProps, 'visible' | 'children'>,
UseModalEnhancedProps {}
extends Omit<AntdModalProps, 'visible' | 'children' | 'open'>,
UseModalEnhancedProps {
open?: boolean; // 为了老版本也有 TS 类型提示
}

/**
* @description 方便用户自定义 `Modal` 的 `props`
Expand Down

0 comments on commit 898d352

Please sign in to comment.