From 08043daf8ffc0825d7b41ca236d0149ac1121fbf Mon Sep 17 00:00:00 2001 From: Flavien Charlon Date: Tue, 14 Mar 2017 11:23:12 +0000 Subject: [PATCH] Use "export as namespace" for hellosign-embedded --- hellosign-embedded/hellosign-embedded-tests.ts | 2 +- hellosign-embedded/index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hellosign-embedded/hellosign-embedded-tests.ts b/hellosign-embedded/hellosign-embedded-tests.ts index 1ca8f3aafd..4ff618e812 100644 --- a/hellosign-embedded/hellosign-embedded-tests.ts +++ b/hellosign-embedded/hellosign-embedded-tests.ts @@ -1,4 +1,4 @@ -import HelloSign = require('hellosign-embedded'); +import { HelloSign } from 'hellosign-embedded'; HelloSign.init('abc123'); diff --git a/hellosign-embedded/index.d.ts b/hellosign-embedded/index.d.ts index a290a6c508..e7a94beaf0 100644 --- a/hellosign-embedded/index.d.ts +++ b/hellosign-embedded/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/HelloFax/hellosign-embedded // Definitions by: Brian Surowiec // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module HelloSign { +export declare module HelloSign { interface SignedMessageEvent { event: 'signature_request_signed'; signature_id: string; @@ -269,4 +269,4 @@ declare module HelloSign { declare var HelloSign: HelloSign.HelloSignStatic; -export = HelloSign; +export as namespace HelloSign;