mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-27 13:42:16 -05:00
* change esnest.promise to es2018.promise * modify unit tests * resolve conflict * resolve conflict
13 lines
511 B
TypeScript
13 lines
511 B
TypeScript
/**
|
|
* Represents the completion of an asynchronous operation
|
|
*/
|
|
interface Promise<T> {
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): Promise<T>
|
|
}
|