This message was deleted.
# typescript
s
This message was deleted.
h
Hi, I think you should be able to use the 'lifting' behavior to access these properties directly in your typescript. If each property is itself an output, then you can still access sub-properties without verbose checking. Accessing output properties is a little like implicitly having the
?.
syntax. Here's the example in the docs:
Copy code
let certValidation = new aws.route53.Record("cert_validation", {
  records: [certCertificate.domainValidationOptions[0].resourceRecordValue],

// instead of

let certValidation = new aws.route53.Record("cert_validation", {
  records: [certCertificate.apply(cc => cc ? cc.domainValidationOptions : undefined)
                           .apply(dvo => dvo ? dvo[0] : undefined)
                           .apply(o => o ? o.resourceRecordValue : undefined)],