Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "convert/formations"

Index

Type aliases

Functions

Type aliases

Function

Function: function

Type declaration

    • (json: any, factory: Factory<DataImmutable, DataMutable>): Iterable<Formation<DataImmutable, DataMutable>>
    • Parameters

      • json: any
      • factory: Factory<DataImmutable, DataMutable>

      Returns Iterable<Formation<DataImmutable, DataMutable>>

Functions

formations

  • formations<DataImmutable, DataMutable>(response: any, factory: Factory<DataImmutable, DataMutable>, prop?: string): ReadonlyArray<Formation<DataImmutable, DataMutable>>
  • Converts the retrieved data from the GraphQL formations query into the corresponding formations.

    Type parameters

    • DataImmutable

    • DataMutable: DataImmutable

    Parameters

    • response: any
    • factory: Factory<DataImmutable, DataMutable>
    • Default value prop: string = "formationsConnection"

    Returns ReadonlyArray<Formation<DataImmutable, DataMutable>>