We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
原文: 注意,模板字符串可以引用的类型一共6种,分别是 string、number、bigint、boolean、null、undefined。引用这6种以外的类型会报错。 事实上,经过我测试,引用这六种之外的枚举类型,不会报错,可以解析。 例子: enum e2 { a = 'a', b = 'b' } type t = w ${e2} // "w a" | "w b" 故此,望改正。 你的读者 2024年3月19日
w ${e2}
The text was updated successfully, but these errors were encountered:
5d4a2f1
谢谢补充,我已经加进去了。
Sorry, something went wrong.
No branches or pull requests
原文:
注意,模板字符串可以引用的类型一共6种,分别是 string、number、bigint、boolean、null、undefined。引用这6种以外的类型会报错。
事实上,经过我测试,引用这六种之外的枚举类型,不会报错,可以解析。
例子:
enum e2 {
a = 'a',
b = 'b'
}
type t =
w ${e2}
// "w a" | "w b"故此,望改正。
你的读者
2024年3月19日
The text was updated successfully, but these errors were encountered: