one-piece-card-game-json 0.1.5 → 0.1.7
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 +36 -0
- package/index.js +10 -8
- package/package.json +2 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export interface Card {
|
|
2
|
+
card_name: string;
|
|
3
|
+
card_number: string;
|
|
4
|
+
rarity: string;
|
|
5
|
+
is_alternate_art: boolean;
|
|
6
|
+
card_type: string;
|
|
7
|
+
image_url: string;
|
|
8
|
+
life: string;
|
|
9
|
+
cost: string;
|
|
10
|
+
attributes: string[];
|
|
11
|
+
power: string;
|
|
12
|
+
counter: string;
|
|
13
|
+
colors: string[];
|
|
14
|
+
types: string[];
|
|
15
|
+
effects: string;
|
|
16
|
+
card_effects: string[];
|
|
17
|
+
card_sets: string;
|
|
18
|
+
image_name: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface Filters {
|
|
22
|
+
colors: string[];
|
|
23
|
+
rarities: string[];
|
|
24
|
+
types: string[];
|
|
25
|
+
sets: string[];
|
|
26
|
+
categories: string[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare module 'one-piece-card-game-json' {
|
|
30
|
+
export const all: Card[];
|
|
31
|
+
export const jp: Card[];
|
|
32
|
+
export const en: {
|
|
33
|
+
cards: Card[];
|
|
34
|
+
filters: Filters;
|
|
35
|
+
};
|
|
36
|
+
}
|
package/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const all = require('one-piece-card-game-json-all');
|
|
2
|
-
const en = require('one-piece-card-game-json-en');
|
|
3
|
-
const jp = require('one-piece-card-game-json-jp');
|
|
4
|
-
|
|
5
1
|
module.exports = {
|
|
6
|
-
all,
|
|
7
|
-
en
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
all: require('./en/cards.json'),
|
|
3
|
+
en: {
|
|
4
|
+
cards: require('./en/cards.json'),
|
|
5
|
+
filters: require('./en/filters.json')
|
|
6
|
+
},
|
|
7
|
+
jp: {
|
|
8
|
+
cards: require('./jp/cards.json'),
|
|
9
|
+
filters: require('./jp/filters.json')
|
|
10
|
+
}
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one-piece-card-game-json",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "One Piece Card Game JSON data",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"index.js",
|
|
22
|
+
"index.d.ts",
|
|
22
23
|
"en/",
|
|
23
24
|
"jp/"
|
|
24
25
|
],
|