This namespace serves as a container for various child components of the ts-workspace module. It aggregates and exports classes, interfaces, enums, and functions that extend the functionality of the parent namespace.
The namespace includes:
- Child class definitions (from "./ChildClass")
- Child interface declarations (from "./ChildInterface")
- Enum declarations (from "./Enum")
- Utility functions (from "./function")
This namespace provides additional tools and structures that complement the core components of the ts-workspace module, allowing for more specialized and extended use cases.
- See:
-
ChildClass
for extended class implementationsChildInterface
for additional interface declarationsEnum
for enumeration typesfunction
for utility functions
Classes
- ChildClass
Generic class extending Class and implementing ChildInterface
Interfaces
- ChildInterface
Generic interface extending Interface with an additional method
Members
string
# static readonly exports.Enum
Enumeration of options
This enum provides a set of predefined options that can be used throughout the application.
Methods
# static something(…args) → {Type.<T>}
Generic function that logs arguments and returns the context
This function is a generic method that extends the Class type. It logs all provided arguments to the console and returns the context (this) of the function.
{T}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
V
|
<repeatable> |
Variable number of arguments of type V |
- See:
-
Class
Type
Returns the context (this) of the function
Type.<T>
Example
class MyClass extends Class {
myMethod() {
return something.call(this, 'arg1', 'arg2');
}
}
const instance = new MyClass();
const result = instance.myMethod();
// Logs: 'arg1', 'arg2'
// result is the instance of MyClass