Options
All
  • Public
  • Public/Protected
  • All
Menu

结构化列表数据转换器。

Type parameters

  • TItem

Hierarchy

  • StructuredListTransformer

Index

Constructors

constructor

Methods

pack

packAsHttpResponse

unpack

Static transformIfNeeded

  • transformIfNeeded(value: any, depth?: number): any
  • 如果是打包后的结构化列表数据,则解包后返回,否则直接返回。如果是对象,则递归尝试解包。

    Parameters

    • value: any

      数据

    • Default value depth: number = 2

      递归层级,默认:2

    Returns any

    返回结果数据

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc