Skip to content

Commit 8bf755d

Browse files
committed
Updated docs for getServerSideProps and getStaticProps return values based on the declared type (fix #33576)
1 parent f81a6a5 commit 8bf755d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/api-reference/data-fetching/get-server-side-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The `context` parameter is an object containing the following keys:
4343

4444
## getServerSideProps return values
4545

46-
The `getServerSideProps` function should return an object with the following **optional** properties:
46+
The `getServerSideProps` function should return an object with **any one of the following** properties:
4747

4848
### `props`
4949

docs/api-reference/data-fetching/get-static-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The `context` parameter is an object containing the following keys:
4141

4242
## getStaticProps return values
4343

44-
The `getStaticProps` function should return an object with the following **optional** properties:
44+
The `getStaticProps` function should return object with **any one of the following** properties:
4545

4646
### `props`
4747

0 commit comments

Comments
 (0)