Skip to content

Hermione 8.9.4 - как расширить тип TestFunctionCtx #939

Closed Answered by KuznetsovRoman
bolkonya asked this question in Q&A
Discussion options

You must be logged in to vote

Starting with [email protected], you can do this:

import type { TestFunctionCtx as TestplaneTestFunctionCtx } from "testplane";

declare module 'testplane' {
    export interface TestFunctionCtx extends TestplaneTestFunctionCtx {
        myFunc(var1: string, var2: number): Promise<void>;
    }
}

Also TestFunctionCtx is exported directly from "testplane" module.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KuznetsovRoman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants