
[microsoft/TypeScript] Trailing comma in import type attribute should be allowed (Issue #61916)
DRANK
fisker created an issue (microsoft/TypeScript#61916) ### 🔎 Search Terms "import type", "trailing comma" ### 🕗 Version & Regression Information N/A ### ⏯ Playground Link https://www.typescriptlang.org/play/?#code/C4TwDgpgBAglC8UCWBbMB7ATsAFAIgDN108AaKAbwFgAoKeqAdyWAAsAuauhn0SdgOQArAM7oAdgNK0eAX2k1ZASiA ### 💻 Code ```ts type A = import("foo", { with:{ type:'json', }, // <- I don't see why this is not allowed }) ``` ### 🙁 Actual behavior ``` '}' expected. ``` ### 🙂 Expected behavior No error ### Additional information about the issue _No response_ -- Reply to this email directly or view it on GitHub: https://github.com/microsoft/TypeScript/issues/61916 You are receiving this because you are subscribed to this thread. Message ID: <microsoft/TypeScript/issues/61916@github.com>
👀🙂↕️ github.com/microsoft/Type…