aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-02 12:55:36 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-02 13:31:50 +0800
commit042caa3363b15ed298486afe4236d665fc254065 (patch)
tree6ddb2a2c4a71edea7da6d740f12993dc1263eb3a
parenteb667f653c4ee87132390844afaecf409c7575c8 (diff)
downloaddexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.gz
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.bz2
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.lz
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.xz
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.tar.zst
dexon-sol-tools-042caa3363b15ed298486afe4236d665fc254065.zip
Add async prefix
-rw-r--r--packages/0x.js/src/utils/promisify.ts2
-rw-r--r--packages/typed-contracts/package.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/src/utils/promisify.ts b/packages/0x.js/src/utils/promisify.ts
index 8021a3c9f..1eb1bf29f 100644
--- a/packages/0x.js/src/utils/promisify.ts
+++ b/packages/0x.js/src/utils/promisify.ts
@@ -12,7 +12,7 @@ export function promisify<T>(
) => void,
target: any,
): (...callArgs: any[]) => Promise<T> {
- const promisifiedFunction = (...callArgs: any[]): Promise<T> => {
+ const promisifiedFunction = async (...callArgs: any[]): Promise<T> => {
return new Promise<T>((resolve, reject) => {
const callback = (err: Error|null, data?: T) => {
_.isNull(err) ? resolve(data) : reject(err);
diff --git a/packages/typed-contracts/package.json b/packages/typed-contracts/package.json
index 59bf55a38..6d8aa5016 100644
--- a/packages/typed-contracts/package.json
+++ b/packages/typed-contracts/package.json
@@ -5,7 +5,7 @@
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
- "lint": "tslint --project . 'src/*.ts'",
+ "lint": "tslint --project . 'src/**/*.ts'",
"clean": "shx rm -rf lib",
"build": "tsc"
},