Skip to content

Commit

Permalink
Merge pull request #376 from bigopon/fix-typings
Browse files Browse the repository at this point in the history
fix(typings): explicit return typings for createFullOverrideContext
  • Loading branch information
EisenbergEffect committed May 10, 2019
2 parents 1d2d415 + abe97d3 commit 38e4283
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/repeat-utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {
BindingBehavior,
ValueConverter,
sourceContext,
bindingMode
bindingMode,
OverrideContext
} from 'aurelia-binding';

const oneTime = bindingMode.oneTime;
Expand Down Expand Up @@ -31,7 +32,7 @@ export function updateOverrideContexts(views, startIndex) {
* @param length The collections total length.
* @param key The key in a key/value pair.
*/
export function createFullOverrideContext(repeat, data, index, length, key?: string) {
export function createFullOverrideContext(repeat, data, index, length, key?: string): OverrideContext {
let bindingContext = {};
let overrideContext = createOverrideContext(bindingContext, repeat.scope.overrideContext);
// is key/value pair (Map)
Expand Down

0 comments on commit 38e4283

Please sign in to comment.