What is .d.ts file .
First of all you should have some idea on Javascript and Typescript as well.
So in this text ".d.ts"
"d" stands for declarations and "ts" is for typescript file extensions .
So here the some points on .d.ts file
1. Basically as per the naming conventions its a declarations file.
2. It can be created from a typescript file or from a Javascript file as well.
3. It act as a interface which contains only the declarations.
4. But conceptually we can say that it is just like a header file in C/C++ . when the third party user will use that file he can have only access to the exported functions of the declarations file not to the function implementations.
5 . This file is get generated while tsc compiler compiled the typescript file and it keppes all the declarations in the .d.ts file and export those .
If you want to know more about typescript then you can go through this like
https://www.typescriptlang.org/docs/handbook/classes.html.
If you want to know about typescript please visit my blogpost https://whymysolutions.blogspot.com/2017/09/what-is-typescript.html
So in this text ".d.ts"
"d" stands for declarations and "ts" is for typescript file extensions .
So here the some points on .d.ts file
1. Basically as per the naming conventions its a declarations file.
2. It can be created from a typescript file or from a Javascript file as well.
3. It act as a interface which contains only the declarations.
4. But conceptually we can say that it is just like a header file in C/C++ . when the third party user will use that file he can have only access to the exported functions of the declarations file not to the function implementations.
5 . This file is get generated while tsc compiler compiled the typescript file and it keppes all the declarations in the .d.ts file and export those .
If you want to know more about typescript then you can go through this like
https://www.typescriptlang.org/docs/handbook/classes.html.
If you want to know about typescript please visit my blogpost https://whymysolutions.blogspot.com/2017/09/what-is-typescript.html
Comments
Post a Comment