-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
29 lines (26 loc) · 1.28 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import type { DestinyDamageTypeDefinition, DestinyEnergyTypeDefinition, DestinyItemTierTypeDefinition } from 'bungie-api-ts/destiny2'
import type { PrunedDestinyInventoryItemDefinition, PrunedDestinySandboxPerkDefinition, PrunedDestinyStatDefinition, PrunedDestinyStatGroupDefinition, PrunedPlugSetDefinition } from './types/destiny'
export type DefinitionRecord<T> = Record<number, T>
export interface ManifestData {
weapons: PrunedDestinyInventoryItemDefinition[]
frames: PrunedDestinyInventoryItemDefinition[]
mods: PrunedDestinyInventoryItemDefinition[]
catalysts: PrunedDestinyInventoryItemDefinition[]
masterworks: PrunedDestinyInventoryItemDefinition[]
weaponTraits: PrunedDestinyInventoryItemDefinition[]
itemTiers: DefinitionRecord<DestinyItemTierTypeDefinition>
statDefs: DefinitionRecord<PrunedDestinyStatDefinition>
statGroups: DefinitionRecord<PrunedDestinyStatGroupDefinition>
plugSets: DefinitionRecord<PrunedPlugSetDefinition>
damageTypes: DefinitionRecord<DestinyDamageTypeDefinition>
sandboxPerks: DefinitionRecord<PrunedDestinySandboxPerkDefinition>
seasonCap: number
energyTypes: DefinitionRecord<DestinyEnergyTypeDefinition>
}
export type MinimalManifestData = Omit<ManifestData,
'weapons' |
'frames' |
'weaponTraits' |
'masterworks' |
'catalysts'
>