From 835d0357630a75b758dba2ecb4c81a174fef35a9 Mon Sep 17 00:00:00 2001 From: Danny Hurlburt Date: Sun, 30 Jun 2024 13:14:06 -0600 Subject: [PATCH 1/2] Add missing primitive --- docs/basic/getting-started/basic-type-examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic/getting-started/basic-type-examples.md b/docs/basic/getting-started/basic-type-examples.md index 517ec367..20407f2c 100644 --- a/docs/basic/getting-started/basic-type-examples.md +++ b/docs/basic/getting-started/basic-type-examples.md @@ -56,7 +56,7 @@ type AppProps = { ### `object` as the non-primitive type -`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`. +`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`. 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. From 1295104536039582cc4f7e198a48e6536b17ab52 Mon Sep 17 00:00:00 2001 From: Danny Hurlburt Date: Fri, 12 Jul 2024 18:13:09 -0600 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index aed8ccc5..7f00dfb4 100644 --- a/README.md +++ b/README.md @@ -1113,7 +1113,7 @@ type AppProps = { ##### `object` as the non-primitive type -`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`. +`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`. 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.