Skip to main content
Version: v2.9.2

Structure

Table of Contentsโ€‹

Class Definitionโ€‹

export abstract class Structure {}

Methodsโ€‹

extend()โ€‹

static extend<K extends keyof Extendable, T extends Extendable[K]>(name: K, extender: (target: Extendable[K]) => T): T

Extends a class.

Parametersโ€‹

Parameter Type Description Optional
namestringThe name of the class to extend.
extenderFunctionThe function to extend the class with.

Returnsโ€‹

Type Description
TThe extended class.

get()โ€‹

get<K extends keyof Extendable>(name: K): Extendable[K]

Gets a class.

Parametersโ€‹

Parameter Type Description Optional
namestringThe name of the class to get.

Returnsโ€‹

Type Description
TThe class.