From 8576b49ad3e55b8beae2a8f044c51040484eef12 Mon Sep 17 00:00:00 2001 From: Vury Leo Date: Fri, 18 May 2018 19:51:13 +0800 Subject: [PATCH] CLI: Fix declared return type of pbjs/pbts callback (#1025) --- cli/pbjs.d.ts | 2 +- cli/pbts.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/pbjs.d.ts b/cli/pbjs.d.ts index 5fbe06a73..ead1f3c5d 100644 --- a/cli/pbjs.d.ts +++ b/cli/pbjs.d.ts @@ -1,4 +1,4 @@ -type pbjsCallback = (err: Error|null, output?: string) => {}; +type pbjsCallback = (err: Error|null, output?: string) => void; /** * Runs pbjs programmatically. diff --git a/cli/pbts.d.ts b/cli/pbts.d.ts index a2a5f7cb2..35db28c0e 100644 --- a/cli/pbts.d.ts +++ b/cli/pbts.d.ts @@ -1,4 +1,4 @@ -type pbtsCallback = (err: Error|null, output?: string) => {}; +type pbtsCallback = (err: Error|null, output?: string) => void; /** * Runs pbts programmatically.