message: Fixes JSON-RPC onRequest() doesn't handle async function
diff: * ------------------------------------------------------------------------------------------ */
  'use strict';
  -const toString = Object.prototype.toString;
  -
  export function boolean(value: any): value is boolean {
  return value === true || value === false;
  }
  export function string(value: any): value is string {
  - return toString.call(value) === '[object String]';
  + return typeof value === 'string' || value instanceof String;
  }
  export function number(value: any): value is number {
  - return toString.call(value) === '[object Number]';
  + return typeof value === 'number' || value instanceof Number;
  }
  export function error(value: any): value is Error {
  - return toString.call(value) === '[object Error]';
  + return value instanceof Error;
  }
  export function func(value: any): value is Function {
  - return toString.call(value) === '[object Function]';
  + return typeof value === 'function';
  }
  export function array<T>(value: any): value is T[] {
  