Class

ChildClass

ChildClass(arg1, arg2)

Constructor

# new ChildClass(arg1, arg2)

Generic class extending Class and implementing ChildInterface with additional functionality. It provides a generic implementation with additional properties and methods.

This class extends the base Class and implements the ChildInterface.

Parameters:
Name Type Description
arg1 unknown

First argument of unknown type

arg2 string

Second argument as string

Implements:

View Source namespace/children/ChildClass.ts, line 3

Extends

Methods

# async method() → {Promise.<string>}

Asynchronous method that returns a string after a series of type assertions.

This method overrides the base class method.

Overrides:
Implements:

View Source namespace/children/ChildClass.ts, line 76

Always throws an error

Error

A Promise that resolves to a string

Promise.<string>

# method2(arg1) → {Promise.<string>}

Method that throws an error with a message that includes the input argument.

This method implements the method2 from ChildInterface.

Parameters:
Name Type Description
arg1 T

The input argument of generic type T

View Source namespace/children/ChildClass.ts, line 86

Always throws an error with a message including arg1

Error

A Promise that always rejects with an error

Promise.<string>