Function $from

  • Due to restrictions on decorators, @struct can not narrow the type of the class. You must use the function to wrap the base class in the extends clause to force the correct type.

    Type Parameters

    • const T extends {}

    Parameters

    • t: ClassLike<T>

    Returns StructConstructor<T>

Methods

Methods