Input to GeneratedClass.

interface Options {
    args?: ((...args: any[]) => any[]);
    base?: (new (...args: any) => any);
    initialize?: ((...args: any[]) => void);
    instanceDescriptors?: PropertyDescriptorMap;
    instanceProperties?: object;
    mixins?: Mixin[];
    name?: string;
    staticDescriptors?: PropertyDescriptorMap;
    staticProperties?: object;
}

Hierarchy (view full)

Properties

args?: ((...args: any[]) => any[])

A preprocessor for arguments. Derivatives may use this to transform arguments prior to call to super() and initialize().

base?: (new (...args: any) => any)

The base class, if any.

initialize?: ((...args: any[]) => void)

A function that performs initialization after instantiation. "this" will be the object and arguments are the arguments to the constructor.

instanceDescriptors?: PropertyDescriptorMap

Instance properties defined using descriptors.

instanceProperties?: object

Instance properties.

mixins?: Mixin[]

Options is a default mixin but you can provide others here.

name?: string

The name of the class.

staticDescriptors?: PropertyDescriptorMap

Static properties defined using descriptors.

staticProperties?: object

Static properties.