@pkmn/dex-types 0.10.4 → 0.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -85,8 +85,7 @@ export interface ItemData extends EffectData {
|
|
|
85
85
|
isGem?: boolean;
|
|
86
86
|
isPokeball?: boolean;
|
|
87
87
|
isPrimalOrb?: boolean;
|
|
88
|
-
megaStone?: string
|
|
89
|
-
megaEvolves?: string | string[];
|
|
88
|
+
megaStone?: {[megaEvolves: string]: string};
|
|
90
89
|
naturalGift?: {basePower: number; type: TypeName};
|
|
91
90
|
onDrive?: string;
|
|
92
91
|
onMemory?: string;
|
|
@@ -243,7 +242,7 @@ export interface MoveData extends EffectData, HitEffect {
|
|
|
243
242
|
|
|
244
243
|
export type SpeciesTag =
|
|
245
244
|
'Mythical' | 'Restricted Legendary' | 'Sub-Legendary' | 'Ultra Beast' | 'Paradox';
|
|
246
|
-
export interface SpeciesAbility<A = string> {
|
|
245
|
+
export interface SpeciesAbility<A = string> {0: A; 1?: A; H?: A; S?: A}
|
|
247
246
|
|
|
248
247
|
export interface SpeciesData {
|
|
249
248
|
abilities: SpeciesAbility;
|
|
@@ -371,8 +370,7 @@ export interface Item extends Readonly<BasicEffect<ItemName> & ItemData> {
|
|
|
371
370
|
readonly effectType: 'Item';
|
|
372
371
|
readonly kind: 'Item';
|
|
373
372
|
readonly forcedForme?: SpeciesName;
|
|
374
|
-
readonly megaStone?: SpeciesName
|
|
375
|
-
readonly megaEvolves?: SpeciesName | SpeciesName[];
|
|
373
|
+
readonly megaStone?: {[megaEvolves: SpeciesName]: SpeciesName};
|
|
376
374
|
readonly onDrive?: TypeName;
|
|
377
375
|
readonly onMemory?: TypeName;
|
|
378
376
|
readonly onPlate?: TypeName;
|