From abe97d32ae683880321b28ee0b9b84e5999246a8 Mon Sep 17 00:00:00 2001 From: "bigopon.777@gmail.com" Date: Wed, 8 May 2019 23:00:30 +1000 Subject: [PATCH] fix(typings): explicit return typings for createFullOverrideContext --- src/repeat-utilities.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/repeat-utilities.ts b/src/repeat-utilities.ts index 9cd6647..1166e43 100644 --- a/src/repeat-utilities.ts +++ b/src/repeat-utilities.ts @@ -3,7 +3,8 @@ import { BindingBehavior, ValueConverter, sourceContext, - bindingMode + bindingMode, + OverrideContext } from 'aurelia-binding'; const oneTime = bindingMode.oneTime; @@ -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)