Use "export as namespace" for hellosign-embedded

This commit is contained in:
Flavien Charlon
2017-03-14 11:23:12 +00:00
parent f53a809725
commit 08043daf8f
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
import HelloSign = require('hellosign-embedded');
import { HelloSign } from 'hellosign-embedded';
HelloSign.init('abc123');

View File

@@ -2,7 +2,7 @@
// Project: https://github.com/HelloFax/hellosign-embedded
// Definitions by: Brian Surowiec <https://github.com/xt0rted/>
// 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;