12 lines
242 B
TypeScript
12 lines
242 B
TypeScript
//// [objectLitTargetTypeCallSite.ts]
|
|
function process( x: {a:number; b:string;}) {
|
|
return x.a;
|
|
}
|
|
|
|
process({a:true,b:"y"});
|
|
|
|
//// [objectLitTargetTypeCallSite.js]
|
|
function process(x) {
|
|
return x.a;
|
|
}
|
|
process({ a: true, b: "y" });
|