diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-02 13:11:55 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-02 13:31:50 +0800 |
commit | 5673b42ec47342a1e4be2dd77a5676407a60e401 (patch) | |
tree | abc86ebebbb353f048b54bc749cbabfcdd28cb87 | |
parent | 438c8ff807aa83ca8a2526a4a398d744554b76fd (diff) | |
download | dexon-sol-tools-5673b42ec47342a1e4be2dd77a5676407a60e401.tar dexon-sol-tools-5673b42ec47342a1e4be2dd77a5676407a60e401.tar.gz dexon-sol-tools-5673b42ec47342a1e4be2dd77a5676407a60e401.tar.bz2 dexon-sol-tools-5673b42ec47342a1e4be2dd77a5676407a60e401.tar.lz dexon-sol-tools-5673b42ec47342a1e4be2dd77a5676407a60e401.tar.xz dexon-sol-tools-5673b42ec47342a1e4be2dd77a5676407a60e401.tar.zst dexon-sol-tools-5673b42ec47342a1e4be2dd77a5676407a60e401.zip |
Make target optional
-rw-r--r-- | packages/0x.js/src/utils/promisify.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/0x.js/src/utils/promisify.ts b/packages/0x.js/src/utils/promisify.ts index 1eb1bf29f..49024c0e9 100644 --- a/packages/0x.js/src/utils/promisify.ts +++ b/packages/0x.js/src/utils/promisify.ts @@ -10,7 +10,7 @@ export function promisify<T>( ...args: any[], // HACK: This can't be properly typed without variadic kinds https://github.com/Microsoft/TypeScript/issues/5453 ) => void, - target: any, + target?: any, ): (...callArgs: any[]) => Promise<T> { const promisifiedFunction = async (...callArgs: any[]): Promise<T> => { return new Promise<T>((resolve, reject) => { |