Skip to content

@serenity-is/corelib / Decorators / registerClass

Function: registerClass()

registerClass(nameOrIntf?, intf2?): (target, _context?) => void

Defined in: src/types/decorators.ts:23

Registers a class with an optional full name and interfaces.

Parameters

nameOrIntf?

Full type name or interface list.

string | InterfaceType[]

intf2?

InterfaceType[]

Additional interfaces.

Returns

Class decorator.

(target, _context?): void

Parameters

target

Function

_context?

any

Returns

void