From 92654f646b7fccd73285c3c0031b63577d95382c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Fri, 28 Feb 2020 18:15:02 +0100 Subject: [PATCH] Add default generic arg value to `Listener` type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The changes introduced by dcfda58 may break existing consumers of our typings. This commit fixes this problem by adding a default value to the recently introduced generic argument of `Listener` type. Signed-off-by: Miroslav Bajtoš --- types/observer-mixin.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/observer-mixin.d.ts b/types/observer-mixin.d.ts index 2c82721c..baf21333 100644 --- a/types/observer-mixin.d.ts +++ b/types/observer-mixin.d.ts @@ -19,7 +19,9 @@ export interface OperationHookContext { [property: string]: any; } -export type Listener = (ctx: Ctx, next: (err?: any) => void) => void; +export type Listener> = ( + ctx: Ctx, next: (err?: any) => void +) => void; export interface ObserverMixin { /**