• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * Represents the completion of an asynchronous operation
3 */
4interface Promise<T> {
5    /**
6     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
7     * resolved value cannot be modified from the callback.
8     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
9     * @returns A Promise for the completion of the callback.
10     */
11    finally(onfinally?: (() => void) | undefined | null): Promise<T>
12}
13