package connect; typedef NextFunction = ts.AnyOf2<() -> Void, (err:Dynamic) -> Void>;