There is a workaround for constants in the interface: define a module and interface with the same name.
Next, the interface declaration is combined with the module, so that OlympicMedal becomes a value, namespace, and type. It may be what you want.
module OlympicMedal { export const GOLD = "Gold"; export const SILVER = "Silver"; } interface OlympicMedal /* extends What_you_need */ { myMethod(input: any): any; }
This works with Typescript 2.x
source share