@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.
11 lines (10 loc) • 537 B
TypeScript
import { ODataQuery } from '../OData.types';
/**
* Options of this type must be specified at most once.
* @param option The option being validated (ex. $top)
* @param value The result of {@link URLSearchParams.prototype.getAll URLSearchParams.getAll}
* @param result The {@link ODataQuery} to append the error to
* @returns {boolean} Returns `false` when the parse has an error
*/
export declare const atMostOnce: (option: string, value: string[], result: ODataQuery) => boolean;
//# sourceMappingURL=atMostOnce.d.ts.map