Complete the code to declare a variable with an intersection type of Person and Employee.
type Person = { name: string };
type Employee = { id: number };
let worker: Person [1] Employee;Complete the code to define a function parameter with an intersection type of A and B.
type A = { a: number };
type B = { b: string };
function combine(param: A [1] B) {
console.log(param.a, param.b);
}Fix the error in the intersection type declaration.
type X = { x: number } [1] { y: string };Fill both blanks to create an intersection type combining interfaces A and B.
interface A { a: number; }
interface B { b: string; }
type AB = [1] A [2] B;Fill all three blanks to create a variable with an intersection type and assign a valid object.
type C = { c: boolean };
type D = { d: number };
let obj: [1] = { c: true, d: 42 } as [2] [3] D;