() => {}
is not the same as() => void
.{a?: string | undefined}
is tautology.void | undefined | {} | never | null
is tautology.- Native types
Record
,Partial
etc are a bunch of internal jargon, meaningless from JS view. - Interfaces and types are same thing differently named, only creates confusion.
unknown
vsany
: little who cares about the difference.JSX.Element
,React.ReactNode
,React.ReactFragment
is tautologyconst X = {abc:123} as const
Last active
August 16, 2023 14:58
-
-
Save dy/994fc31188a25c2bec41628b86c01f3c to your computer and use it in GitHub Desktop.
Why not typescript
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment