Closed
Description
Bug Report
π Search Terms
4.2 Type alias
π Version & Regression Information
- This changed between versions 4.1.5 and 4.2.3
- Also reproducible in 4.3.0-beta and nightly
β― Playground Link
π» Code
const func1 = (arg: Record<'field', string>) => { }
type Type1 = Record<'field', string>
const func2 = (arg: Type1) => { }
const arg: Record<string, string> = {}
func1(arg) // ok
func2(arg) // Property 'field' is missing in type 'Record<string, string>' but required in type 'Type1'.
π Actual behavior
Type alias Type1
differs from original type Record<'field', string>
π Expected behavior
Types of func1
and func2
should be equal and behave the same way, as it worked on 4.1.5 and earlier