ylliX - Online Advertising Network
Vertex AI - Antrophic and Mistral models: Why does it require Imegen access?

Unable to do getenv in typescript


let curr_display: string = env.get('DISPLAY_ID') ;

this code gives an error

Type ‘IOptionalVariable<{}>’ is not assignable to type ‘string’.ts(2322)

Does this mean there is no guarantee that this variable may not exist, and how to solve this ?



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *