get generator script running
This commit is contained in:
parent
57484a0e80
commit
c3bd7b1294
@ -1,4 +1,3 @@
|
|||||||
import * as Pokemon from 'pokemongo-json-pokedex/output/pokemon.json';
|
import * as Pokemon from 'pokemongo-json-pokedex/output/pokemon.json';
|
||||||
|
|
||||||
console.log(Pokemon);
|
console.log(Pokemon[0]);
|
||||||
console.log(hello);
|
|
||||||
|
|||||||
8
src/ts/typings/pokemon.json.d.ts
vendored
8
src/ts/typings/pokemon.json.d.ts
vendored
@ -28,7 +28,7 @@ declare module "pokemongo-json-pokedex/output/pokemon.json" {
|
|||||||
name : string;
|
name : string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const pokemon : {
|
interface IPokemon {
|
||||||
dex : number;
|
dex : number;
|
||||||
name : string;
|
name : string;
|
||||||
cinematicMoves : Array<IMove>;
|
cinematicMoves : Array<IMove>;
|
||||||
@ -37,6 +37,8 @@ declare module "pokemongo-json-pokedex/output/pokemon.json" {
|
|||||||
stats : IStats;
|
stats : IStats;
|
||||||
types : Array<IType>;
|
types : Array<IType>;
|
||||||
forms : Array<IForme>
|
forms : Array<IForme>
|
||||||
};
|
}
|
||||||
export default pokemon;
|
|
||||||
|
const pokemon : Array<IPokemon>;
|
||||||
|
export = pokemon;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,7 +20,8 @@
|
|||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./src/**/*"
|
"./src/**/*",
|
||||||
|
"."
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user