Latest updates in my newsletter.
In TypeScript, when we want to define an object type, there are several concise options such as 'Object', '{}', a...
For further actions, you may consider blocking this person and/or reporting abuse
Great post, this is the kind of content that we want to see on dev.to, don't we? :-)
I was totally unaware of "lowercase object" (but I did hear about "Record") - super confusing, as is often the case with Javascript and TypeScript, for historical reasons of how it "came to be" ...
I honestly have no idea why they added "lowercase object", and would never recommend using it in place of "Record", but anyway, nice to know about it.
In "This means that all non-primitive types are not assignable to it, and vice versa." you probably meant "assignable" without the "not"
They probably meant “all primitive types”, since that’s what’s demonstrated in the code block.
Thanks for your tip, I fixed it.
Your teaching is very good. I became know about object.
Great content, I'll definitely be referencing this a lot till it's stuck in my brain.
It's not recommend to use type object, Object and {}
Btw Object it's not typescript specifications, and object a constructive type rarely can be used, maybe if you're writing a library declaration.
Nice very useful!
Thanks You, easy to understand.
So the lowercase one is more strict, weird.
Informative!