2:17 What is Typescript? 3:50 Components of Typescript (pretty much the same as first question) 5:35 Why should we use Typescript 7:11 Access Modifiers 8:23 What type did Typescript add to Javascript? 9:33 Difference between interface and type? 10:57 Generic types 12:03 Structural Typing 13:22 Private fields rules 14:24 Never vs unknown vs any 17:31 Declare keyword 18:52 What are ambients? (unanswered)
@hoihoanginh92645 ай бұрын
thank you for summarizing
@asadanik5987 Жыл бұрын
Ambient declarations are typically used to describe the shape of libraries that are written in JavaScript, so that you can use them in your TypeScript code with type checking and IDE support. They are defined in .d.ts files, which are TypeScript declaration files that contain only type information and no actual implementation code.
@dubble_cuppachino Жыл бұрын
10:46 types cannot be extended, but they can be intersected to create new types. This should be mentioned when asked how types are different than interfaces.
@yeasinarafat2290 Жыл бұрын
You mean aggregating various types to create another type in the case of interface?
@julianosanm Жыл бұрын
Always nice to see a fellow BR speaking English so well. 💪
@NeniEmSu Жыл бұрын
Any allows you to perform any operation on a value without any type checking, whereas unknown requires you to perform type checking before performing any operations on the value. The 'never' keyword to make a variable of never type. Users can use the never type when they are sure about any situation that will never occur. For example, we can use the never as a return type when we are sure that the function will never return any value.
@licokr Жыл бұрын
The intervieww has a very good knowledge of typescript. I was able to learn a lot from the video. Thank you for sharing the great video :)
@MdMostafizurRahman-xv3qw2 жыл бұрын
An ambient declaration is a way to tell the TypeScript compiler about the existence of a value that is not written in TypeScript, such as a global variable or a third-party library.
@hoihoanginh92645 ай бұрын
Thank you so much to Turning bros! Please publish many many videos like this. It's pretty helpful for everyone there, including me.
@majd36637 Жыл бұрын
Ambient declarations in TypeScript allow you to provide type information for external libraries, global variables, or other non-TypeScript code. To use ambient declarations, you create `.d.ts` files where you define the ambient types. These declaration files should be included in your TypeScript project so that the compiler can recognize and apply the type information. Overall, ambient declarations in TypeScript enable better type-checking and tooling support in projects that involve external entities.
@ann_lu3 ай бұрын
I would say no need to create it, just to set up declararion: true in tsconfig and it will be generated automatically from .ts files with types
@AGhostyProduction15 күн бұрын
I wonder when its ideal to use one over the other, but it seems like there’s an organizational edge to using a .d.ts file I would normally use declare though, based on my early career experience
@webdevbyteАй бұрын
16:00 when using the any type, you can freely assign and reassign values of different types without TypeScript raising type errors. When you assign a type never, you cannot reassign it to any other type, including an object.
@suzzie123ful Жыл бұрын
Very Informative!!
@robyhuzwandar Жыл бұрын
can extends but it is not extends, it call Intersection. so it is not wrong if we say type can't extend.
@devuthakkar16022 жыл бұрын
Very well done.👍
@Turingcom2 жыл бұрын
Thank you! Cheers!
@yashwanthreddygowreddigari1997 Жыл бұрын
Awesome.. Thank you so much it is very Usefull
@4w0ken4 ай бұрын
oh man i would crush these interviews
@asadanik5987 Жыл бұрын
Awesome. Turing 🥰🥰🥰🥰
@Turingcom Жыл бұрын
Thanks for watching! :)
@Mr.Zeus116 ай бұрын
good one!
@jellyfish1772 Жыл бұрын
Useful video
@devendrayadav25344 ай бұрын
`any` is funny, you can resassign `string | number | boolean` anything lol. Purpose of typescript defeated with single keyword.
@akadeadahot70676 ай бұрын
Hey buddy what kind of question is that “ u like typescript or not “ seriously is it concern with Candidate who is giving interview
@jamad-y7m5 күн бұрын
Should be titled 'Fake interview'
@qazyhn947 күн бұрын
What a idiotic question about interface and type, everybody asks this while this is completely dumb... just a team should agree on one since they are pretty the same purpose, shows only that interviewers asks questions from google red flag