function hasMessage()

in packages/vscode-extension-web-ide/src/scm/commit/showCommitErrorMessage.ts [33:41]


function hasMessage(arg: unknown): arg is { message: string } {
  if (!arg || typeof arg !== 'object') {
    return false;
  }

  const body = arg as { message: string };

  return typeof body.message === 'string';
}