TypeScript 4.8 is here! Now with ✅ Improved narrowing and inference ✅ Primitive-parsing from template string types ✅ --incremental/--watch perf improvements ✅ Lots of new correctness checks and more! Read up and get it now! devblogs.microsoft.com/typescript/ann…
@typescript Love the improvements for inferring Types in Template String Types 👨🍳👌
@typescript // How do you do this in Typescript const api = { a: 1, b: { c: 2, d: 3, e: { f: 4, g: 5 } } }; function format(){} const reulst = format(api); // reulst is { a: 1, bc: 2, bd: 3, bef: 4, beg: 5 } // useing result will be tips;
@typescript Hello, I would like to ask a question, the following code: class VideoRecorder extends MediaRecorder {// ....} the MediaRecorder API cannot be used in the lower version of the safari browser, resulting in an error.can you still use extends? Is there any better way to do it?