The type of the fulfilled value.
OptionalreasonThe reason that the promise was rejected with.
OptionalrejectedIdentifies if the promise was rejected (true) or was resolved (false/undefined)
A string indicating that the promise was rejected.
OptionalvalueThe value that the promise was fulfilled with.
A Simple type which identifies the result of a promise as a single response, it identifies if the promise was rejected or resolved along with the resolved value or rejected reason. It is a union of the
IPromiseFulfilledResultandIPromiseRejectedResultinterfaces the response will contain therejectedproperty which will be true if the promise was rejected or false if the promise was resolved. Thestatusproperty will be set to either "fulfilled" or "rejected" to identify the status of the promise. Thevalueorreasonproperties will contain the resolved value or rejected reason respectively.Example