Export as default function

This commit is contained in:
Stan Goldmann
2018-02-16 17:32:11 +01:00
parent 4bf37b6049
commit aed892f99e
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import * as anybar from 'anybar'
import anybar from 'anybar'
anybar('red', { port: 123 })
+1 -3
View File
@@ -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