Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/typings/thenable.d.ts
3290 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
/**
7
* Thenable is a common denominator between ES6 promises, Q, jquery.Deferred, WinJS.Promise,
8
* and others. This API makes no assumption about what promise library is being used which
9
* enables reusing existing code without migrating to a specific promise implementation. Still,
10
* we recommend the use of native promises which are available in VS Code.
11
*/
12
interface Thenable<T> extends PromiseLike<T> { }
13
14