Skip to content

Commit

Permalink
fix(antd/next): fix FormDialog typings
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Sep 22, 2021
1 parent 2392888 commit 4b170ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/antd/src/form-dialog/index.tsx
Expand Up @@ -43,8 +43,8 @@ const getModelProps = (props: any): IModalProps => {

export interface IFormDialog {
forOpen(middleware: IMiddleware<IFormProps>): IFormDialog
forConfirm(middleware: IMiddleware<IFormProps>): IFormDialog
forCancel(middleware: IMiddleware<IFormProps>): IFormDialog
forConfirm(middleware: IMiddleware<Form>): IFormDialog
forCancel(middleware: IMiddleware<Form>): IFormDialog
open(props?: IFormProps): Promise<any>
close(): void
}
Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/form-dialog/index.tsx
Expand Up @@ -52,8 +52,8 @@ export interface IDialogProps extends DialogProps {

export interface IFormDialog {
forOpen(middleware: IMiddleware<IFormProps>): IFormDialog
forConfirm(middleware: IMiddleware<IFormProps>): IFormDialog
forCancel(middleware: IMiddleware<IFormProps>): IFormDialog
forConfirm(middleware: IMiddleware<Form>): IFormDialog
forCancel(middleware: IMiddleware<Form>): IFormDialog
open(props?: IFormProps): Promise<any>
close(): void
}
Expand Down

0 comments on commit 4b170ca

Please sign in to comment.