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
I'm upgrading vue/compiler-sfc and found the following two templates: one is TSTemplateLiteralType and the other is TemplateLiteral.
Is there a reason for this? @JLHwung
I'm upgrading vue/compiler-sfc and found the following two templates: one is TSTemplateLiteralType and the other is TemplateLiteral. Is there a reason for this? @JLHwung
type a = ``
type b = `${1}`
Yes, it is intentional. See #17066. In TS type annotations, a template without any ${} is essentially a string literal, while the other represents a productive collection of string concatenated from the sub types.
Activity
liuxingbaoyu commentedon Sep 26, 2025
https://github.com/rollup/plugins/blob/ca4780995433fb55b709c91f28d5c13066ebf026/packages/babel/package.json#L56
@rollup/plugin-babelseems to be unfinished?liuxingbaoyu commentedon Sep 27, 2025
I'm upgrading
vue/compiler-sfcand found the following two templates: one isTSTemplateLiteralTypeand the other isTemplateLiteral.Is there a reason for this? @JLHwung
JLHwung commentedon Sep 27, 2025
Yes, it is intentional. See #17066. In TS type annotations, a template without any
${}is essentially a string literal, while the other represents a productive collection of string concatenated from the sub types.nicolo-ribaudo commentedon Oct 24, 2025
The full Jest upgrade is blocked by react native upgrading, which is blocked by leonardfactory/babel-plugin-transform-typescript-metadata#71