In the second part of the TypeScript task: transform all fields of the Delivery type object into a new type using TypeScript utility types.
Frontend
Based on the Delivery type, create a new type where the fields name, address, and date would be optional. Which built-in utility type in TypeScript would you use?
How to quickly increase the number of rollers from 3 to 10 in the current implementation by creating a constant with the required number and dynamically forming arrays and rendering drums?
What static Promise methods do you know besides Promise.resolve? How does Promise.all differ from Promise.allSettled?
Why did you highlight the Chat Header as a separate widget? What criteria do you use to determine what is a widget and what is not?
[name] asked: tell us about your work experience, why you decided to leave your current job, and what you expect from the new place?
How to override the context (this) inside the loadScript function if it is a method of a class and should be called with a different this?
// Create a type that contains the same fields as Delivery, // but all fields are optional (may have undefined value) and cannot change their values.
Given three new types. You need to create a new type based on them that satisfies the condition (contains all fields of the given types, union type). What approach should be used?
What will be the value of 'this' inside a function if called via fn.call(this) in a browser — in normal mode and in strict mode?
How to make a single HTTP request and subscribe to its result multiple times?
Why did you choose WebSocket? Are there alternatives?
Describe the API endpoints we will need (getUsers, getChat, sendMessage, etc.). Which will work through REST and which through WebSocket?
What happens if you pass clearCache directly instead of a callback (without closure)? Why won't it work and how to fix it (e.g., using bind)?
What is a CDN? How does static content get there? How does the client know which CDN server to contact?
Look at the code: why will the App component rerender on clicking 'Render', and why will the Child component rerender when typing in the input?
Write test cases to verify the memoization function (for example, on a power function).
How does database replication (master-slave) work? How will the load balancer direct requests to different servers with different databases?
Should Angular Signals be used in a component instead of Input and Observable streams? Justify your decision.
Create a new type based on the Delivery type, where the fields name, address, and date become optional (Partial).