From 2f357db4d0308f7af528c071a959dea097e11a7b Mon Sep 17 00:00:00 2001 From: Otavio Jacobi Date: Wed, 3 Jun 2026 11:16:40 -0300 Subject: [PATCH] Add `ParameterAliasBind` typing utility Change-type: minor --- odata-parser.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/odata-parser.d.ts b/odata-parser.d.ts index 1711c87..c8006fd 100644 --- a/odata-parser.d.ts +++ b/odata-parser.d.ts @@ -18,6 +18,8 @@ export type BooleanBind = ['Boolean', boolean]; export type TextBind = ['Text', string]; export type DateBind = ['Date' | 'Date Time', Date]; +export type ParameterAliasBind = NumberBind | BooleanBind | TextBind | DateBind; + export interface ResourceOptions { count?: true; options?: ODataOptions; @@ -74,10 +76,7 @@ export interface ODataOptions { [key: string]: // User defined options, do not start with $ or @ | string // Parameter aliases (start with @) - | NumberBind - | BooleanBind - | TextBind - | DateBind + | ParameterAliasBind // known $ options // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents | SelectOption