import * as propertiesJson from "./data/properties.json" ; export enum PropertyType { navigational , scalar , ambiguous , notProperty } const navigationProperties = new Set < string > ( propertiesJson . navigational ) ; const scalarProperties = new Set < string > ( propertiesJson . scalar ) ; const ambiguousProperties = new Set < string > ( propertiesJson . ambiguous ) ; export function getPropertyType ( propertyName ) { if ( navigationProperties . has ( propertyName ) ) { return PropertyType . navigational ; } else if ( scalarProperties . has ( propertyName ) ) { return PropertyType . scalar ; } else if ( ambiguousProperties . has ( propertyName ) ) { return PropertyType . ambiguous ; } else { return PropertyType . notProperty ; } }