Skip to content

Commit e3ad85f

Browse files
Update src/pages/[platform]/build-a-backend/data/query-data/index.mdx
Co-authored-by: josef <[email protected]>
1 parent 3fa3f03 commit e3ad85f

File tree

1 file changed

+1
-1
lines changed
  • src/pages/[platform]/build-a-backend/data/query-data

1 file changed

+1
-1
lines changed

src/pages/[platform]/build-a-backend/data/query-data/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ When using TypeScript, you frequently need to specify data model types for type
222222

223223
<InlineFilter filters={["react", "javascript", "nextjs", "react-native"]}>
224224

225-
For instance, with React's `useState`, you provide a type in TypeScript to ensure type-safety in your component code using the state. Use the `Schema["MODEL_NAME"]["type"]` pattern to get TypeScript types for the shapes of data models returned from the backend API. This allows you to get consumable TypeScript types for the shapes of the data model return values coming from the backend API.
225+
For instance, with React's `useState`, you provide a type in TypeScript to ensure type-safety in your component code using the state. Use the `Schema["MODEL_NAME"]["type"]` pattern to get TypeScript types for the shapes of data models returned from the backend API.
226226

227227
```ts
228228
import { type Schema } from '@/amplify/data/resource';

0 commit comments

Comments
 (0)