/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ export interface Deferred { /** * Returns a promise for this deferred */ promise: Promise; /** * Resolves the deferred * @param args - The args to resolve the deferred with */ resolve(...args: any[]): Promise; /** * Rejects the deferred * @param args - The args to reject the deferred with */ reject(...args: any[]): Promise; }