Skip to content

Commit 3fcab91

Browse files
authoredJul 13, 2024
Add missing primitive (#721)
1 parent 091b325 commit 3fcab91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ type AppProps = {
11131113

11141114
##### `object` as the non-primitive type
11151115

1116-
`object` is a common source of misunderstanding in TypeScript. It does not mean "any object" but rather "any non-primitive type", which means it represents anything that is not `number`, `string`, `boolean`, `symbol`, `null` or `undefined`.
1116+
`object` is a common source of misunderstanding in TypeScript. It does not mean "any object" but rather "any non-primitive type", which means it represents anything that is not `number`, `bigint`, `string`, `boolean`, `symbol`, `null` or `undefined`.
11171117

11181118
Typing "any non-primitive value" is most likely not something that you should do much in React, which means you will probably not use `object` much.
11191119

Diff for: ‎docs/basic/getting-started/basic-type-examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type AppProps = {
5656

5757
### `object` as the non-primitive type
5858

59-
`object` is a common source of misunderstanding in TypeScript. It does not mean "any object" but rather "any non-primitive type", which means it represents anything that is not `number`, `string`, `boolean`, `symbol`, `null` or `undefined`.
59+
`object` is a common source of misunderstanding in TypeScript. It does not mean "any object" but rather "any non-primitive type", which means it represents anything that is not `number`, `bigint`, `string`, `boolean`, `symbol`, `null` or `undefined`.
6060

6161
Typing "any non-primitive value" is most likely not something that you should do much in React, which means you will probably not use `object` much.
6262

0 commit comments

Comments
 (0)