我正在尝试实现TypeScript array to string literal type
我在PhpStorm上出现红色下划线错误,在type name expected之后出现错误as const
type name expected
as const
我也尝试了<const>,但在<和>附近也遇到了相同的错误
<const>
<
>
我的用户打字稿3.8.3
对我来说很好: