Skip to content

Commit 60b1875

Browse files
committed
Fix typos
1 parent 97f66b7 commit 60b1875

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source/development-testing/static-typing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function RocketInventory() {
170170
}
171171
```
172172

173-
This however makes it difficult to work with the `data` property. You either need to type cast each property on `data` to supress the error, or cast `data` as an `any` type (not recommended) which removes type safety entirely.
173+
This however makes it difficult to work with the `data` property. You either need to type cast each property on `data` to suppress the error, or cast `data` as an `any` type (not recommended) which removes type safety entirely.
174174

175175
Instead, we can leverage the types generated by GraphQL Codegen along with `TypedDocumentNode` to provide types for GraphQL documents. `TypedDocumentNode` includes generic arguments for data and variables:
176176

@@ -600,7 +600,7 @@ You can define your own context types for better type safety in Apollo Client us
600600

601601
### Adding custom context properties
602602

603-
To define types for your custom context properties, create a TypeScript file and define the `DefaultContext` interface. Provide
603+
To define types for your custom context properties, create a TypeScript file and define the `DefaultContext` interface.
604604

605605
```ts title="apollo-client.d.ts"
606606
// This import is necessary to ensure all Apollo Client imports

0 commit comments

Comments
 (0)