From aed892f99e6351ecbb091fb962d7e5f2704e3923 Mon Sep 17 00:00:00 2001 From: Stan Goldmann Date: Fri, 16 Feb 2018 17:32:11 +0100 Subject: [PATCH] Export as default function --- types/anybar/anybar-tests.ts | 2 +- types/anybar/index.d.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/types/anybar/anybar-tests.ts b/types/anybar/anybar-tests.ts index 6b4ea8ef89..9577c6a7de 100644 --- a/types/anybar/anybar-tests.ts +++ b/types/anybar/anybar-tests.ts @@ -1,4 +1,4 @@ -import * as anybar from 'anybar' +import anybar from 'anybar' anybar('red', { port: 123 }) diff --git a/types/anybar/index.d.ts b/types/anybar/index.d.ts index 4972f29756..b42bcb3e40 100644 --- a/types/anybar/index.d.ts +++ b/types/anybar/index.d.ts @@ -5,6 +5,4 @@ declare namespace anybar { } -declare function anybar(color: string, options?: { port: number }): void - -export = anybar +export default function anybar(color: string, options?: { port: number }): void