@tsdotnet/reflection - v1.1.3
    Preparing search index...

    Class TypeInfo

    Exposes easy access to type information including inquiring about members.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isArray: boolean = false
    isArrayLike: boolean = false
    isBoolean: boolean = false
    isFinite: boolean = false
    isFunction: boolean = false
    isNull: boolean = false
    isNullOrUndefined: boolean = false
    isNumber: boolean = false
    isObject: boolean = false
    isPrimitive: boolean = false
    isString: boolean = false
    isSymbol: boolean = false
    isTrueNaN: boolean = false
    isUndefined: boolean = false
    isValidNumber: boolean = false
    target: any
    type: string

    Methods

    • Returns null if the target does not match the type (instanceof). Otherwise returns the target as the type.

      Type Parameters

      • T extends object

      Parameters

      • type: new (...params: any[]) => T

      Returns null | T

    • Returns true if the target matches the type (instanceof).

      Type Parameters

      • T extends object

      Parameters

      • type: new (...params: any[]) => T

      Returns boolean

    • Returns a TypeInfo for any member or non-member, where non-members are of type undefined.

      Parameters

      • name: string | number | symbol

      Returns TypeInfo

    • Returns a TypeInfo for any target object. If the target object is of a primitive type, it returns the TypeInfo instance assigned to that type.

      Parameters

      • target: unknown

      Returns TypeInfo