So, I have this into environment.ts:
export const common = {
TYPES_COOL: ['cool0','cool1','cool2']
}
And wanna use this values to define a new type into myCoolModel.model.ts:
import { common } from 'environment.ts';
export type MyType = common.TYPES_COOL[0] | common.TYPES_COOL[1] | common.TYPES_COOL[2];
But Visual Code launch error -> Cannot find namespace 'common'.
It's possible define new types using values from environment.ts ?