objectLiteralShorthandPropertiesFunctionArgument2.ts(7,5): error TS2741: Property 'a' is missing in type '{ name: string; id: number; }' but required in type '{ a: string; id: number; }'.


==== objectLiteralShorthandPropertiesFunctionArgument2.ts (1 errors) ====
    var id: number = 10000;
    var name: string = "my name";
    
    var person = { name, id };
    
    function foo(p: { a: string; id: number }) { }
    foo(person);  // error
        ~~~~~~
!!! error TS2741: Property 'a' is missing in type '{ name: string; id: number; }' but required in type '{ a: string; id: number; }'.
!!! related TS2728 objectLiteralShorthandPropertiesFunctionArgument2.ts:6:19: 'a' is declared here.
    