Skip to content

Commit

Permalink
fix typings for bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu committed Aug 31, 2022
1 parent 390e018 commit 7f609e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interfaces/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export interface CorrelationIDObject extends SpecificationExtensions {
}

export interface Binding {
bindingVersion: string;
bindingVersion?: string;
[key: string]: any;
}

Expand Down
2 changes: 1 addition & 1 deletion src/models/v2/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class Binding extends BaseModel<v2.Binding, { protocol: string }> impleme
}

version(): string {
return this._json.bindingVersion;
return this._json.bindingVersion || 'latest';
}

value<T extends Record<string, any> = Record<string, any>>(): T {
Expand Down

0 comments on commit 7f609e4

Please sign in to comment.