1.32.0 • Published 5 days ago

@moddota/panorama-types v1.32.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 days ago

Panorama Types

TypeScript definitions for Dota 2 Panorama API

Installation

Check out our addon template for usage examples.

  1. Get package from npm
yarn add -D @moddota/panorama-types
# or
npm install -D @moddota/panorama-types
  1. Modify your tsconfig.json
{
  "compilerOptions": {
    "types": ["@moddota/panorama-types"]
  }
}

Enums

This package includes 2 versions of enum types - raw and normalized. Raw types are included by default, with "types": ["@moddota/panorama-types"]. They match actual values available at runtime, however lead to repetition and require you to use inconsistent standard names.

Normalized enum types can be included with "types": ["@moddota/panorama-types/normalized"] and require you to use @moddota/panorama-types/transformer (for example using ttypescript). With these types, enums have consistent names and have no repeated parts. For example, instead of EDOTA_ModifyGold_Reason.DOTA_ModifyGold_Unspecified you have to write ModifyGoldReason.UNSPECIFIED.

Both type versions define aliases for alternative names, so libraries created with one version would be compatible with a different one.

1.32.0

5 days ago

1.31.0

5 months ago

1.29.0

9 months ago

1.29.1

9 months ago

1.27.0

10 months ago

1.28.0

10 months ago

1.30.0

8 months ago

1.25.0

1 year ago

1.26.0

1 year ago

1.23.0

1 year ago

1.24.0

1 year ago

1.22.0

1 year ago

1.21.0

2 years ago

1.20.0

2 years ago

1.19.0

2 years ago

1.15.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.18.0

2 years ago

1.17.0

2 years ago

1.16.1

2 years ago

1.16.0

2 years ago

1.15.1

2 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago