Skip to content

Commit fc51b98

Browse files
committed
export all internal API objects from codeceptjs module
1 parent 91e25a3 commit fc51b98

File tree

1 file changed

+1
-81
lines changed

1 file changed

+1
-81
lines changed

typings/index.d.ts

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -520,86 +520,6 @@ declare namespace CodeceptJS {
520520
}
521521

522522
function addStep(step: string | RegExp, fn: Function): Promise<void>
523-
524-
// Internal API types
525-
class Container {
526-
static create(config: any, opts?: any): Promise<void>
527-
static actor(): any
528-
static plugins(name?: string): any
529-
static support(name?: string): any
530-
static helpers(name?: string): any
531-
static translation(): any
532-
static mocha(): any
533-
}
534-
535-
class Codecept {
536-
// Codecept class methods - to be filled from JSDoc
537-
}
538-
539-
class Config {
540-
static get(): any
541-
static set(key: string, value: any): void
542-
}
543-
544-
namespace output {
545-
function print(message: string): void
546-
function log(message: string): void
547-
function debug(message: string): void
548-
function error(message: string): void
549-
function info(message: string): void
550-
function success(message: string): void
551-
function warn(message: string): void
552-
}
553-
554-
type event = {
555-
dispatcher: any
556-
on: (event: string, handler: Function) => void
557-
once: (event: string, handler: Function) => void
558-
removeListener: (event: string, handler: Function) => void
559-
removeAllListeners: (event?: string) => void
560-
emit: (event: string, ...args: any[]) => void
561-
}
562-
563-
type recorder = {
564-
(fn: () => Promise<void> | void): void
565-
start: () => void
566-
stop: () => void
567-
add: (fn: Function) => void
568-
retry: any[]
569-
catch: (fn: Function) => void
570-
schedule: (fn: Function) => any
571-
promiseStack: any[]
572-
running: boolean
573-
}
574-
575-
type store = {
576-
debugMode: boolean
577-
timeouts: boolean
578-
autoRetries: boolean
579-
dryRun: boolean
580-
}
581-
582-
class Secret {
583-
static secret(value: string | number): Secret
584-
toString(): string
585-
getMasked(): string
586-
}
587-
588-
type pause = () => void
589-
590-
type within = (locator: LocatorOrString) => void
591-
592-
class DataTable {
593-
static (data: any[] | any[][]): any
594-
}
595-
596-
class DataTableArgument {
597-
static (data: any): any
598-
}
599-
600-
class Locator {
601-
static build(locator: ILocator | string): any
602-
}
603523
}
604524

605525
type TryTo = <T>(fn: () => Promise<T> | T) => Promise<T | false>
@@ -813,7 +733,7 @@ declare module 'codeceptjs' {
813733
/**
814734
* Create a secret value
815735
*/
816-
export const secret: typeof CodeceptJS.secret
736+
export const secret: typeof CodeceptJS.Secret.secret
817737
}
818738

819739
declare module '@codeceptjs/helper' {

0 commit comments

Comments
 (0)