@pkmn/dex-types 0.6.3 → 0.7.0

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.
Files changed (2) hide show
  1. package/index.d.ts +5 -4
  2. package/package.json +3 -2
package/index.d.ts CHANGED
@@ -24,7 +24,8 @@ export type SpeciesName = string & As<'SpeciesName'>;
24
24
  export type FormeName = string & As<'FormeName'>;
25
25
 
26
26
  export type EffectType =
27
- 'Condition' | 'Pokemon' | 'Move' | 'Item' | 'Ability' | 'Nature' | 'Weather' | 'Status';
27
+ 'Condition' | 'Pokemon' | 'Move' | 'Item' | 'Ability' |
28
+ 'Nature' | 'Weather' | 'Status' | 'Terastal';
28
29
  export type Effect = Ability | Item | Move | Condition;
29
30
 
30
31
  export type DataKind =
@@ -161,7 +162,7 @@ export interface MoveData extends EffectData, HitEffect {
161
162
  thawsTarget?: boolean;
162
163
  heal?: number[] | null;
163
164
  forceSwitch?: boolean;
164
- selfSwitch?: boolean | 'copyvolatile';
165
+ selfSwitch?: 'copyvolatile' | 'shedtail' | boolean;
165
166
  selfBoost?: { boosts?: Partial<BoostsTable> };
166
167
  selfdestruct?: boolean | 'ifHit' | 'always';
167
168
  breaksProtect?: boolean;
@@ -317,7 +318,7 @@ export interface BasicEffect<NameT extends string = string> extends Readonly<Eff
317
318
  }
318
319
 
319
320
  export interface Condition extends Readonly<BasicEffect> {
320
- readonly effectType: 'Condition' | 'Weather' | 'Status';
321
+ readonly effectType: 'Condition' | 'Weather' | 'Status' | 'Terastal';
321
322
  readonly kind: 'Condition';
322
323
  }
323
324
 
@@ -439,7 +440,7 @@ export interface Nature extends NatureData {
439
440
  readonly exists?: boolean;
440
441
  }
441
442
 
442
- export type GenID = 'gen1' | 'gen2' | 'gen3' | 'gen4' | 'gen5' | 'gen6' | 'gen7' | 'gen8';
443
+ export type GenID = 'gen1' | 'gen2' | 'gen3' | 'gen4' | 'gen5' | 'gen6' | 'gen7' | 'gen8' | 'gen9';
443
444
  export type ModData = DeepPartial<Dex['data'] & {Scripts: {inherit: GenID}}>;
444
445
 
445
446
  export interface DexTable<T> {
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@pkmn/dex-types",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "types": "index.d.ts",
5
5
  "description": "Common Pokémon Showdown Dex types shared by @pkmn/dex and @pkmn/sim",
6
6
  "repository": "github:pkmn/ps",
7
7
  "license": "MIT",
8
+ "sideEffects": false,
8
9
  "publishConfig": {
9
10
  "access": "public"
10
11
  },
@@ -12,7 +13,7 @@
12
13
  "index.d.ts"
13
14
  ],
14
15
  "dependencies": {
15
- "@pkmn/types": "^2.1.0"
16
+ "@pkmn/types": "^3.0.0"
16
17
  },
17
18
  "scripts": {
18
19
  "lint": "eslint --cache --ext *.ts",