I'm working with a Typescript interface
export interface MyInterface {
valid: boolean;
resourceType: MyEnum;
message: string;
}
As well as an enum
enum MyEnum {
'a',
'b',
'c'
}
Is there a way to allow the value of MyInterface.resourceType to accept any value from MyEnum?
Currently, my code editor is showing an error
property 'resourceType' of exported interface has or is using private
name 'MyEnum'