isOk<T> (value: ResultType<T>): value is ({ ok: T }) {
    return Object.hasOwnProperty.call(value, 'ok');
  },