@shko.online/dataverse-odata
Version:
This package will help parse OData strings (only the Microsoft Dataverse subset). It can be used as a validator, or you can build some javascript library which consumes the output of this library.
10 lines • 615 B
TypeScript
import { ODataQuery } from "./OData.types";
/**
* Recursively gets the value of an aliased property. For example, if the query is `$orderby=@p1` and `@p1=name`, this function will return `name`
* @param parser The URLSearchParams object containing the query parameters
* @param result Will contain the error details in case there is any
* @param property The property to expand
* @returns The expanded property or null when there is an error
*/
export declare const getAliasedProperty: (parser: URLSearchParams, result: ODataQuery, property: string) => string;
//# sourceMappingURL=getAliasedProperty.d.ts.map