@sap-cloud-sdk/odata-common
Version:
SAP Cloud SDK for JavaScript common functions of OData client generator and OpenAPI clint generator.
16 lines (15 loc) • 625 B
TypeScript
/**
* Make property non enumerable.
* @param target - Object to be adjusted
* @param propertyKey - property key which is adjusted.
* @internal
*/
export declare const nonEnumerable: (target: any, propertyKey: string) => void;
/**
* Checks if the property with name key of the entity is a navigation property.
* @param key - Name of the property.
* @param schema - Schema which contains the potential navigation property.
* @returns A boolean denoting whether an entity is a navigation property or not.
* @internal
*/
export declare function isNavigationProperty(key: string, schema: Record<string, any>): boolean;