From dd53f0e414b138f687f1328787cc2a9ed67d3b98 Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Mon, 1 May 2023 10:29:36 -0700 Subject: [PATCH] fix type errors in smoke test --- packages/web/src/components/createCell.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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