Theia API Documentation v1.65.0
    Preparing search index...

    Thenable is a common denominator between ES6 promises, Q, jquery.Deferred, WinJS.Promise, and others. This API makes no assumption about what promise library is being used which enables reusing existing code without migrating to a specific promise implementation. Still, we recommend the use of native promises which are available in this editor.

    interface Thenable<T> {
        then<TResult>(
            onfulfilled?: (value: T) => TResult | Thenable<TResult>,
            onrejected?: (reason: any) => TResult | Thenable<TResult>,
        ): Thenable<TResult>;
        then<TResult>(
            onfulfilled?: (value: T) => TResult | Thenable<TResult>,
            onrejected?: (reason: any) => void,
        ): Thenable<TResult>;
    }

    Type Parameters

    • T
    Index

    Methods

    Methods