Interface TypeClass

Reflection

never

Hierarchy

Properties

annotations?: any
arguments?: Type[]

When class has generic type arguments, e.g. MyClass, it contains all type arguments. If no type arguments are given, it's undefined.

classType: ClassType<any>
decorators?: Type[]
extendsArguments?: Type[]

When the class extends another class and uses on it generic type arguments, then those arguments are in this array. For example class A extends B<string, boolean> {} then extendsArguments = [string, boolean].

indexAccessOrigin?: {
    container: TypeClass | TypeObjectLiteral;
    index: Type;
}

Set for index access expressions, e.g. Config['property'].

Type declaration

jit?: any

A place where arbitrary jit functions and its cache data is stored.

kind: class
origin?: Type
originTypes?: {
    typeArguments: Type[];
    typeName: string;
}[]

type User = {id: number, user: string}; type UserCreate = Pick<User, 'user'>; typeOf().originTypes[0].typeName = 'Pick' typeOf().originTypes[0].typeArguments = [User, 'user']

parent?: Type
scheduleDecorators?: TypeObjectLiteral[]
typeArguments?: Type[]

If the type was created by a type function, this contains the arguments passed the function.

typeName?: string

If the type was created by a type function, this contains the alias name.

properties/methods.

Generated using TypeDoc