diff --git a/packages/web/src/components/createCell.tsx b/packages/web/src/components/createCell.tsx index 0468e02423c2..eb27d4989076 100644 --- a/packages/web/src/components/createCell.tsx +++ b/packages/web/src/components/createCell.tsx @@ -46,21 +46,21 @@ export type CellProps< Omit< ComponentProps, | keyof CellPropsVariables - | keyof QueryOperationResult | keyof GQLResult | 'updating' + | 'queryResult' > & CellPropsVariables > export type CellLoadingProps = { - queryResult: Partial< + queryResult?: Partial< Omit, 'loading' | 'error' | 'data'> > } export type CellFailureProps = { - queryResult: Partial< + queryResult?: Partial< Omit, 'loading' | 'error' | 'data'> > error?: QueryOperationResult['error'] | Error // for tests and storybook @@ -103,7 +103,7 @@ export type CellSuccessProps< TData = any, TVariables extends OperationVariables = any > = { - queryResult: Partial< + queryResult?: Partial< Omit, 'loading' | 'error' | 'data'> > updating?: boolean