Don't allow everything to be assignable to string within string mappings like Uppercase/Lowercase (#52734)

This commit is contained in:
Jake Bailey
2023-02-13 17:58:56 -05:00
committed by GitHub
parent 5b71f59450
commit 79df2bcd35
6 changed files with 48 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
// @strict: true
const x: Uppercase<string> = 42;
const y: Uppercase<string> = { foo: "bar" };