fix: update es modules in arrify

This commit is contained in:
Justin Beckwith
2018-03-30 19:36:48 -07:00
parent def3d5d177
commit 6116dcfbde
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import arrify = require("arrify");
import * as arrify from 'arrify';
arrify(null);
arrify<number>(null);

View File

@@ -14,4 +14,5 @@
* arrify([2, 3]) // returns [2, 3]
*/
declare function arrify<T>(val: undefined | null | T | T[]): T[];
declare namespace arrify {}
export = arrify;