From 2c95b5af0fa31370a79501ad71d3289086a3218a Mon Sep 17 00:00:00 2001 From: Simon Pettersson Date: Wed, 26 Oct 2022 11:18:26 +0200 Subject: [PATCH] Add export of MessageBus to match types.d.ts The MessageBus class is declared as exported in the types.d.ts file, but in reality it is not exported in the index.js file. This causes weird and hard to troubleshoot errors when trying to extend the MessageBus class in typescript. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index e78d3cf..109ba6b 100644 --- a/index.js +++ b/index.js @@ -69,3 +69,4 @@ module.exports.Variant = Variant; module.exports.Message = Message; module.exports.validators = require('./lib/validators'); module.exports.DBusError = errors.DBusError; +module.exports.MessageBus = MessageBus;