Skip to content

Commit

Permalink
fix type errors in smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed May 1, 2023
1 parent 85108a4 commit dd53f0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/web/src/components/createCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ export type CellProps<
Omit<
ComponentProps<CellSuccess>,
| keyof CellPropsVariables<CellType, GQLVariables>
| keyof QueryOperationResult
| keyof GQLResult
| 'updating'
| 'queryResult'
> &
CellPropsVariables<CellType, GQLVariables>
>

export type CellLoadingProps<TVariables extends OperationVariables = any> = {
queryResult: Partial<
queryResult?: Partial<
Omit<QueryOperationResult<any, TVariables>, 'loading' | 'error' | 'data'>
>
}

export type CellFailureProps<TVariables extends OperationVariables = any> = {
queryResult: Partial<
queryResult?: Partial<
Omit<QueryOperationResult<any, TVariables>, 'loading' | 'error' | 'data'>
>
error?: QueryOperationResult['error'] | Error // for tests and storybook
Expand Down Expand Up @@ -103,7 +103,7 @@ export type CellSuccessProps<
TData = any,
TVariables extends OperationVariables = any
> = {
queryResult: Partial<
queryResult?: Partial<
Omit<QueryOperationResult<TData, TVariables>, 'loading' | 'error' | 'data'>
>
updating?: boolean
Expand Down

0 comments on commit dd53f0e

Please sign in to comment.