Property 'values' does not exist on type 'ObjectConstructor'

definition of property in law
what is a property in science
property's or properties
property synonym
types of property
how to pronounce property
property for sale
property for sale near me

In the following I am converting an enum in to an array, it seems that I may have something missing in my tsconfig.json.

This is the script:

const menuItems = Object.values(MediaListFilterType).map(value => ({
    type: value,
    description: () => {
        switch (value) {
            case value === MediaListFilterType.notPitched:
                return 'Exclude already pitched';
            case value === MediaListFilterType.notDoublePitched:
                return 'Exclude double pitched';
            case value === MediaListFilterType.assignedToMe:
                return 'Assigned to me';
            case value === MediaListFilterType.notAssigned:
                return 'Unassigned';

this gives me this error: Property 'values' does not exist on type 'ObjectConstructor'.

and the tsconfig is as follows...

  "compilerOptions": {
    "module": "es6",
    "target": "es2015",
    "sourceMap": true,
    "jsx": "react",
    "moduleResolution": "node",
    "declaration": false,
    "allowSyntheticDefaultImports": true

I am a bit new at this so I am not sure what I need to change in the tsconfig. Help!

You have "target": "es2015", but Object.values is not a part of es2015. Its a part of es2017 :


Use "target": "ESNext" which has that feature.

Property, synonyms: possessions, belongings, things, goods, worldly goods, effects, personal effects, stuff, chattels, movables, resources, assets, valuables, fortune, capital, riches, wealth, holdings, securities, patrimony, personalty, goods and chattels, gear, trek 1. Search Any Address 2. See Property Records, Deeds & Titles, Owner Info & Much More. Get In-Depth Property Reports & Info You May Not Find On Other Sites. Try Searching Now!

add es2017.object to compilerOptions lib array.

Property, "the property of heat to expand metal at uniform rates" Download Property Sale Agreement Form Template for Free. Customize Now.

Real Estate, Property definition is - a quality or trait belonging and especially peculiar to an individual or thing. How to use property in a sentence. Synonym Discussion of  quality, property, character, attribute mean an intelligible feature by which a thing may be identified. quality is a general term applicable to any trait or characteristic whether individual or generic.

What Is Property?, Property definition, that which a person owns; the possession or possessions of a particular owner: They lost all their property in the fire. See more. Property definition, that which a person owns; the possession or possessions of a particular owner: They lost all their property in the fire. See more.

PROPERTY, Property is anything tangible or intangible over which a person or business has a legal title. Discover more about the term here. PropertyShark is a real estate data provider of in-depth information on any US property, commercial or residential. Find the real owner of a property with researched phone numbers, see detailed property information, check property characteristics, foreclosures, property sales history, title documents, tax data, and more.

Elon Musk Lists Property Combo in Bel Air for $62.5 Million, a quality in a substance or material, especially one that means that it can be used in a particular way: One of the properties of copper is that it offers a simple search service and lists hundreds of thousands of homes for sale or to rent. Create an alert now. Browse by location. Houses for sale in Aberdeen. Flats to rent in Aberdeen. Property in Aberdeen. Houses for sale in Bath. Flats to rent in Bath. Property in Bath. Houses for sale in Birmingham.