google-cloud-node icon indicating copy to clipboard operation
google-cloud-node copied to clipboard

Bad Type Definition in runJob Result

Open hspak opened this issue 2 years ago • 0 comments

Environment details

  • which product (packages/*): @google-cloud/run
  • OS: macOS 13.4.1
  • Node.js version: 18.16.0
  • npm version: 9.5.1
  • google-cloud-node version: @google-cloud/run version 0.6.0

Steps to reproduce

import { v2 } from '@google-cloud/run';

const client = new v2.JobsClient();
const [runJob] = await client.runJob({
  name: `the/full/name/for/job`,
});  

// This exists in the output, but types disagree.
console.log(`  View logs: ${runJob?.metadata?.logUri}`);

Error: Screenshot 2023-07-25 at 12 47 42 PM

I am working around with a @ts-ignore, but that's not ideal.

hspak avatar Jul 25 '23 19:07 hspak