declarations.d.ts file code example
Example: .d.ts vs .ts
*.ts
function displayMessage(message) {
alert(message);
}
*.d.ts
declare function displayMessage(message: string)
*.ts
function displayMessage(message) {
alert(message);
}
*.d.ts
declare function displayMessage(message: string)