You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the following comment. Until I saw this explanation I was going crazy looking for how to import types like AnyMark, which typescript was trying to tell me my "bar" mark type was invalid for.
See the following comment. Until I saw this explanation I was going crazy looking for how to import types like
AnyMark
, which typescript was trying to tell me my "bar" mark type was invalid for.The issue without
as const
is that Typescript widens the type of"bar"
tostring
rather than the literal"bar"
.Originally posted by @domoritz in #7127 (comment)
The text was updated successfully, but these errors were encountered: