typescript import declaration file code example
Example 1: .d.ts vs .ts
*.ts
function displayMessage(message) {
alert(message);
}
*.d.ts
declare function displayMessage(message: string)
Example 2: export interface typescript
interface Props {}
export interface IRefered {
name: string
}