How to set the return type of a function as promise?
To set the return type of a function as a in TypeScript, you simply use the Promise<T> syntax, where T is the type of the value that the promise resolves to.
Promise<T> specifies that the function returns a promise which eventually resolves to a value of type string