Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export TestFunctionCtx type #958

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

KuznetsovRoman
Copy link
Member

@KuznetsovRoman KuznetsovRoman commented Jun 24, 2024

After this PR, user would be able to use clean module augmentation. Example:

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

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

Also he would be able to pass test function context to other functions and type them properly:
#939

@KuznetsovRoman KuznetsovRoman merged commit a6c98d9 into master Jun 25, 2024
2 checks passed
@KuznetsovRoman KuznetsovRoman deleted the INFRADUTY-27117.TestFunctionCtx branch June 25, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants