``` const projectID = getProject({ projectId:...
# typescript
q
Copy code
const projectID = getProject({
    projectId: config.require("projectID"),
  }).then(project => project.id);
Why is projectID still a promise? 😂  I feel so stupid
p
how about this?
Copy code
const projectID = await getProject({
    projectId: config.require("projectID"),
  }).then(project => project.id);
g
Values returned from a Promise are also promises, just like values returned from Outputs are also Outputs. This is because these are eventual values, so they have to be awaited before they are known.