How to declare a Map type in typescript?

The error message you are describing occurs in a declaration file.

To make this work, you need remove the semi-colon at the end of your interface declaration:

interface DependData {
    [key: string]: string;
}

The extra semi-colon is causing an empty statement to be parsed in addition to the interface declaration, thus giving that error message.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)