bigint is a primitive since is not assignable to object. Not sure if we want this here though since there is no description for newer types such as bigint or unknown in "Basic Types.md". bigint is introduced in TS@3.2 page.
const foo: object = BigInt(100); // Type 'bigint' is not assignable to type 'object'.ts(2322)
bigint
is a primitive since is not assignable toobject
. Not sure if we want this here though since there is no description for newer types such asbigint
orunknown
in "Basic Types.md".bigint
is introduced in TS@3.2 page.https://mariusschulz.com/blog/the-object-type-in-typescript