External module "convert/formations"
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>>
-
Type parameters
-
DataImmutable
-
DataMutable: DataImmutable
Parameters
-
response: any
-
factory: Factory<DataImmutable, DataMutable>
-
Default value prop: string = "formationsConnection"
Returns ReadonlyArray<Formation<DataImmutable, DataMutable>>
Converts the retrieved data from the GraphQL formations query into the corresponding formations.