Make signatures consistent
This commit is contained in:
parent
43ccb464b1
commit
7224ae8585
4 changed files with 6 additions and 6 deletions
|
|
@ -40,7 +40,7 @@ export function toObject(data: any): Party {
|
||||||
},
|
},
|
||||||
raid: Raid.toObject(data.raid),
|
raid: Raid.toObject(data.raid),
|
||||||
guidebooks: data.guidebooks,
|
guidebooks: data.guidebooks,
|
||||||
} as Party
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transforms Party object into API parameters
|
// Transforms Party object into API parameters
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import * as Raid from './RaidTransformer'
|
import * as Raid from './RaidTransformer'
|
||||||
|
|
||||||
// Transforms API response to RaidGroup object
|
// Transforms API response to RaidGroup object
|
||||||
export function toObject(data: any) {
|
export function toObject(data: any): RaidGroup {
|
||||||
return {
|
return {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
name: {
|
name: {
|
||||||
|
|
@ -15,5 +15,5 @@ export function toObject(data: any) {
|
||||||
extra: data.extra,
|
extra: data.extra,
|
||||||
guidebooks: data.guidebooks,
|
guidebooks: data.guidebooks,
|
||||||
hl: data.hl,
|
hl: data.hl,
|
||||||
} as RaidGroup
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import * as Element from './ElementTransformer'
|
||||||
import * as RaidGroup from './RaidGroupTransformer'
|
import * as RaidGroup from './RaidGroupTransformer'
|
||||||
|
|
||||||
// Transforms API response to Raid object
|
// Transforms API response to Raid object
|
||||||
export function toObject(data: any) {
|
export function toObject(data: any): Raid {
|
||||||
return {
|
return {
|
||||||
id: data.id,
|
id: data.id,
|
||||||
group: RaidGroup.toObject(data.group),
|
group: RaidGroup.toObject(data.group),
|
||||||
|
|
@ -13,5 +13,5 @@ export function toObject(data: any) {
|
||||||
element: Element.toObject(data.element),
|
element: Element.toObject(data.element),
|
||||||
level: data.level,
|
level: data.level,
|
||||||
slug: data.slug,
|
slug: data.slug,
|
||||||
} as Raid
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export function toObject(data: any): User {
|
||||||
gender: data.gender,
|
gender: data.gender,
|
||||||
language: data.language,
|
language: data.language,
|
||||||
theme: data.theme,
|
theme: data.theme,
|
||||||
} as User
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transforms User object into API parameters
|
// Transforms User object into API parameters
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue