I can merge enum declarations within a single file e.g.
export enum Test {
value1 = <any>'value1',
value2 = <any>'value2'
}
export enum Test {
value3 = <any>'value3'
}
This works fine, but my intention is to have a shared enum which I can extend later, e.g.
// test.enum.ts
export enum Test {
value1 = <any>'value1',
value2 = <any>'value2'
}
// place-to-extend-enum.ts
import { Test } from './test.enum';
export enum Test {
value3 = <any>'value3'
}
What I get is
Individual declarations in merged declaration 'Test' must be all exported or all local.
Is there a way to achieve the desired behaviour?