Skip to content

Commit

Permalink
fix: use omit to elegant &
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnIsOnTheRoad committed Dec 11, 2019
1 parent 950a193 commit 72e51a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions packages/antd/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ import { StyledComponent } from 'styled-components'

type ColSpanType = number | string

export type IAntdSchemaFormProps = FormProps &
export type IAntdSchemaFormProps = Omit<FormProps, 'onSubmit'> &
IFormItemTopProps &
PreviewTextConfigProps &
ISchemaFormProps | {
onSubmit?: ISchemaFormProps['onSubmit']
}
ISchemaFormProps

export type IAntdSchemaFieldProps = IMarkupSchemaFieldProps

Expand Down
6 changes: 2 additions & 4 deletions packages/next/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ import { StyledComponent } from 'styled-components'

type ColSpanType = number | string

export type INextSchemaFormProps = FormProps &
export type INextSchemaFormProps = Omit<FormProps, 'onSubmit'> &
IFormItemTopProps &
PreviewTextConfigProps &
ISchemaFormProps | {
onSubmit?: ISchemaFormProps['onSubmit']
}
ISchemaFormProps

export type INextSchemaFieldProps = IMarkupSchemaFieldProps

Expand Down

0 comments on commit 72e51a6

Please sign in to comment.