I can combine enum declarations inside a single file, for example.
export enum Test { value1 = <any>'value1', value2 = <any>'value2' } export enum Test { value3 = <any>'value3' }
This works great, but I intend to use a common jumper, which I can extend later, for example
// 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' }
I get
Individual declarations in the combined declaration "Test" must be all exported or all local.
Is there a way to achieve the desired behavior?
source share