diff --git a/src/crypto/recoverykey.ts b/src/crypto/recoverykey.ts index b64c2107c..0ffef80b7 100644 --- a/src/crypto/recoverykey.ts +++ b/src/crypto/recoverykey.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import bs58 from 'bs58'; +import * as bs58 from 'bs58'; // picked arbitrarily but to try & avoid clashing with any bitcoin ones // (which are also base58 encoded, but bitcoin's involve a lot more hashing) diff --git a/src/index.ts b/src/index.ts index faab0fed0..c651438fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import request from "request"; +import * as request from "request"; import * as matrixcs from "./matrix"; import * as utils from "./utils"; diff --git a/src/utils.ts b/src/utils.ts index 777531286..4885fb948 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -23,7 +23,7 @@ limitations under the License. import unhomoglyph from "unhomoglyph"; import promiseRetry from "p-retry"; -import type NodeCrypto from "crypto"; +import type * as NodeCrypto from "crypto"; import { MatrixEvent } from "."; import { M_TIMESTAMP } from "./@types/location";