typescript string enum get index