Skip to main content
Version: 5.9

wrap

Callable

  • wrap<T, PK>(entity, preferHelper): IWrappedEntityInternal<T, PK>
  • wrap<T, PK>(entity, preferHelper): IWrappedEntity<T, PK>

  • returns WrappedEntity instance associated with this entity. This includes all the internal properties like __meta or __em.


    Type parameters

    Parameters

    • entity: T
    • preferHelper: true

    Returns IWrappedEntityInternal<T, PK>