Runtests failure: “before all” hook for “Correct errors for tests/cases/compiler/declarationEmitPrivatePromiseLikeInterface.ts”

Any idea? I’m trying to build the app on 32 bit Debian 11 w/ node 16,7, npm 7.21.

declarationEmitPrivatePromiseLikeInterface.ts

// @declaration: true
// @skipLibCheck: true
// @noTypesAndSymbols: true
// @filename: http-client.ts
type TPromise<ResolveType, RejectType = any> = Omit<Promise<ResolveType>, "then" | "catch"> & {
    then<TResult1 = ResolveType, TResult2 = never>(
        onfulfilled?: ((value: ResolveType) => TResult1 | PromiseLike<TResult1>) | undefined | null,
        onrejected?: ((reason: RejectType) => TResult2 | PromiseLike<TResult2>) | undefined | null,
    ): TPromise<TResult1 | TResult2, RejectType>;
    catch<TResult = never>(
        onrejected?: ((reason: RejectType) => TResult | PromiseLike<TResult>) | undefined | null,
    ): TPromise<ResolveType | TResult, RejectType>;
};

export interface HttpResponse<D extends unknown, E extends unknown = unknown> extends Response {
    data: D;
    error: E;
}

export class HttpClient<SecurityDataType = unknown> {
    public request = <T = any, E = any>(): TPromise<HttpResponse<T, E>> => {
        return '' as any;
    };
}
// @filename: Api.ts
import { HttpClient } from "./http-client";

export class Api<SecurityDataType = unknown> {
    constructor(private http: HttpClient<SecurityDataType>) { }

    abc1 = () => this.http.request();
    abc2 = () => this.http.request();
    abc3 = () => this.http.request();
}

1 thought on “Runtests failure: “before all” hook for “Correct errors for tests/cases/compiler/declarationEmitPrivatePromiseLikeInterface.ts”

  1. Please just download the latest code from the git and compile the app using gulp (see the documentation)

    We are the ones who wrote the documentation and we already have the code cloned, since we are the ones writing most of that too, so we’re kind of stuck without you telling us what the baseline diff is. If we were able to reproduce this issue, it would prevent us from merging any PRs. It clearly must be something unique to your environment, which would still be worth investigating, but we need your help. After you run the tests, please run

    gulp baseline-accept
    git diff

    and paste what you get. Thanks!

Comments are closed.