Skip to content

Commit 4324306

Browse files
Copilotkobenguyent
andcommitted
Initial investigation complete
Co-authored-by: kobenguyent <[email protected]>
1 parent b948f18 commit 4324306

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

example-esm/steps.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/// <reference types='codeceptjs' />
2+
type CustomHelper = InstanceType<typeof import('./helpers/CustomHelper.js').default>;
23

34
declare namespace CodeceptJS {
4-
interface SupportObject {
5-
I: I
6-
current: any
7-
}
8-
5+
interface SupportObject { I: I, current: any }
6+
interface Methods extends CustomHelper, FileSystem, REST {}
97
interface I extends WithTranslation<Methods> {}
108
namespace Translation {
119
interface Actions {}

examples/steps.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/// <reference types='codeceptjs' />
2+
type steps_file = typeof import('./custom_steps.js')['default'];
3+
type Smth = typeof import('./pages/Smth.js')['default'];
4+
type loginPage = typeof import('./pages/Login.js')['default'];
5+
type signinFragment = typeof import('./fragments/Signin.js')['default'];
6+
type User = InstanceType<typeof import('./user_helper.js').default>;
7+
8+
declare namespace CodeceptJS {
9+
interface SupportObject { I: I, current: any, Smth: Smth, loginPage: loginPage, signinFragment: signinFragment }
10+
interface Methods extends Playwright, REST, User {}
11+
interface I extends ReturnType<steps_file>, WithTranslation<Methods> {}
12+
namespace Translation {
13+
interface Actions {}
14+
}
15+
}

0 commit comments

Comments
 (0)