template view: remove type duplication

This commit is contained in:
Bruno Windels 2022-04-25 14:05:31 +02:00
parent 22df062bbb
commit a52423856d
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ export class TemplateBuilder<T extends IObservableValue> {
this._templateView._addEventListener(node, name, fn, useCapture);
}
_addAttributeBinding(node: Element, name: string, fn: (value: T) => boolean | string): void {
_addAttributeBinding(node: Element, name: string, fn: AttributeBinding<T>): void {
let prevValue: string | boolean | undefined = undefined;
const binding = () => {
const newValue = fn(this._value);