@blizzard-api/wow 1.0.0 → 1.1.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.
- package/README.md +10 -0
- package/dist/index.cjs +1336 -1641
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +970 -843
- package/dist/index.d.ts +970 -843
- package/dist/index.js +1195 -1640
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,6 +35,16 @@ const achievement = wow.achievement(123);
|
|
|
35
35
|
type AchievementResponse = ExtractResourceType<typeof achievement>;
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
If you don't want to use the exported wow object, you can also access the functions directly:
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import { achievement } from "@blizzard-api/wow"
|
|
42
|
+
|
|
43
|
+
const achievement = achievement(123);
|
|
44
|
+
^ { path: string, namespace: string }
|
|
45
|
+
type AchievementResponse = ExtractResourceType<typeof achievement>;
|
|
46
|
+
```
|
|
47
|
+
|
|
38
48
|
## Differences to @blizzard-api/classic-wow
|
|
39
49
|
|
|
40
50
|
This package is specifically for World of Warcraft (retail or modern), and as such, the endpoints and responses are different from the classic variants. If you are looking for the classic version of World of Warcraft, you should use `@blizzard-api/classic-wow` instead.
|