Declaration files are a special type of source file in TypeScript and have a different file extension. Declaration files have a file extension of
.d.ts and they can contain type information but no implementation details. This includes interface definitions as well as type declarations.
Type declarations are created using the
declare keyword, as shown in the following screenshot:
As you can see, the name of the file is
Book class will exist in the global namespace...