Skip to content

Commit a95ed54

Browse files
Merge pull request #131 from balena-io-modules/add-param-alias-bind
Add `ParameterAliasBind` typing utility
2 parents 6c33487 + 2f357db commit a95ed54

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

odata-parser.d.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export type BooleanBind = ['Boolean', boolean];
1818
export type TextBind = ['Text', string];
1919
export type DateBind = ['Date' | 'Date Time', Date];
2020

21+
export type ParameterAliasBind = NumberBind | BooleanBind | TextBind | DateBind;
22+
2123
export interface ResourceOptions {
2224
count?: true;
2325
options?: ODataOptions;
@@ -74,10 +76,7 @@ export interface ODataOptions {
7476
[key: string]: // User defined options, do not start with $ or @
7577
| string
7678
// Parameter aliases (start with @)
77-
| NumberBind
78-
| BooleanBind
79-
| TextBind
80-
| DateBind
79+
| ParameterAliasBind
8180
// known $ options
8281
// eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents
8382
| SelectOption

0 commit comments

Comments
 (0)