then<
TResult1 = string,
TResult2 = never
>(
onfulfilled: (value: string) => TResult1 |Attaches callbacks for the resolution and/or rejection of the Promise.
The callback to execute when the Promise is resolved.
The callback to execute when the Promise is rejected.