then<
TResult1 = PageClass,
TResult2 = never
>(
onfulfilled: (value: PageClass) => 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.