@screeps-arena-community/types 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -36,5 +36,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
36
  - Package exports for tree-shaking support
37
37
  - Full documentation and usage examples
38
38
 
39
- [1.0.1]: https://github.com/screeps-arena/types/compare/v1.0.0...v1.0.1
40
- [1.0.0]: https://github.com/screeps-arena/types/releases/tag/v1.0.0
39
+ [1.0.1]: https://github.com/screeps-arena-community/types/compare/v1.0.0...v1.0.1
40
+ [1.0.0]: https://github.com/screeps-arena-community/types/releases/tag/v1.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeps-arena-community/types",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "TypeScript type definitions for Screeps Arena",
5
5
  "main": "src/index.d.ts",
6
6
  "types": "src/index.d.ts",
@@ -2,7 +2,7 @@ declare module 'arena/season_1/construct_and_control/basic/prototypes' {
2
2
  import { GameObject } from 'game/prototypes'
3
3
  import { EFFECT_SLOWDOWN } from 'arena/season_1/construct_and_control/basic/constants'
4
4
 
5
- type AreaEffectType = typeof EFFECT_SLOWDOWN
5
+ export type AreaEffectType = typeof EFFECT_SLOWDOWN
6
6
 
7
7
  /** An object that applies an effect of the specified type to all creeps at the same tile */
8
8
  export class AreaEffect extends GameObject {
@@ -27,7 +27,7 @@ declare module 'game/prototypes/creep' {
27
27
  import { Source } from 'game/prototypes/source'
28
28
  import { Store } from 'game/prototypes/store'
29
29
 
30
- type BodyPartType =
30
+ export type BodyPartType =
31
31
  | typeof ATTACK
32
32
  | typeof CARRY
33
33
  | typeof HEAL
@@ -1,17 +1,27 @@
1
1
  declare module 'game/prototypes' {
2
- export { Creep } from 'game/prototypes/creep'
3
- export { GameObject } from 'game/prototypes/game-object'
2
+ export { Creep, BodyPartType } from 'game/prototypes/creep'
3
+ export {
4
+ GameObject,
5
+ Position,
6
+ EffectData,
7
+ Effect,
8
+ } from 'game/prototypes/game-object'
4
9
  export { Structure } from 'game/prototypes/structure'
5
10
  export { OwnedStructure } from 'game/prototypes/owned-structure'
6
11
  export { StructureTower } from 'game/prototypes/tower'
7
- export { StructureSpawn } from 'game/prototypes/spawn'
12
+ export {
13
+ StructureSpawn,
14
+ SpawnCreepResult,
15
+ Spawning,
16
+ } from 'game/prototypes/spawn'
8
17
  export { StructureWall } from 'game/prototypes/wall'
9
18
  export { StructureContainer } from 'game/prototypes/container'
10
19
  export { Source } from 'game/prototypes/source'
11
- export { Resource } from 'game/prototypes/resource'
20
+ export { Resource, ResourceType } from 'game/prototypes/resource'
12
21
  export { StructureRampart } from 'game/prototypes/rampart'
13
22
  export { ConstructionSite } from 'game/prototypes/construction-site'
14
23
  export { StructureExtension } from 'game/prototypes/extension'
15
24
  export { StructureRoad } from 'game/prototypes/road'
16
25
  export { Flag } from 'game/prototypes/flag'
26
+ export { Store } from 'game/prototypes/store'
17
27
  }
@@ -1,7 +1,7 @@
1
1
  declare module 'game/prototypes/resource' {
2
2
  import { GameObject } from 'game/prototypes/game-object'
3
3
 
4
- type ResourceType = string // TODO: develop resource type
4
+ export type ResourceType = string // TODO: develop resource type
5
5
 
6
6
  /** A dropped piece of resource. Dropped resource pile decays for ceil(amount/1000) units per tick */
7
7
  export class Resource extends GameObject {
@@ -1,5 +1,5 @@
1
1
  declare module 'game/prototypes/store' {
2
- type ResourceType = string // TODO: develop resource type
2
+ export type ResourceType = string // TODO: develop resource type
3
3
 
4
4
  /** An object that class contain resources in its cargo */
5
5
  export type Store = {