// tsconfig.json
{
"compilerOptions": {
"exactOptionalPropertyTypes": true
}
}
/*
Type:
{[p: `${string}foo`]: string | undefined}
Type should be:
{[p: `${string}foo`]: string}
*/
R.fromEntries([] as [`${string}foo`, string][]);
/*
This type is fine!
Type: {[p: string]: string}
*/
R.fromEntries([] as [`${string}`, string][]);