🔎 Search Terms
isolated declarations, satisfies, const
🕗 Version & Regression Information
This changed in commit or PR #58201
⏯ Playground Link
https://tsplay.dev/wRbGEw
💻 Code
export const foo = {
a: 42
} as const satisfies Record<string, number>;
🙁 Actual behavior
Variable must have an explicit type annotation with --isolatedDeclarations.ts(9010)
🙂 Expected behavior
No errors
Additional information about the issue
No response
🔎 Search Terms
isolated declarations, satisfies, const
🕗 Version & Regression Information
This changed in commit or PR #58201
⏯ Playground Link
https://tsplay.dev/wRbGEw
💻 Code
🙁 Actual behavior
Variable must have an explicit type annotation with --isolatedDeclarations.ts(9010)🙂 Expected behavior
No errors
Additional information about the issue
No response