Update package
This commit is contained in:
48
src/index.ts
48
src/index.ts
@ -1,27 +1,43 @@
|
||||
import { Card as BaseCard } from './classes/card';
|
||||
import { Ability as BaseAbility } from './classes/ability';
|
||||
import { Attack as BaseAttack } from './classes/attack';
|
||||
import { Meta as BaseMeta } from './classes/meta';
|
||||
import { Set as BaseSet } from './classes/set';
|
||||
import { Type as BaseType } from './classes/type';
|
||||
|
||||
export namespace PokemonTCG {
|
||||
export const Card = BaseCard;
|
||||
export type Card = BaseCard;
|
||||
|
||||
export const Meta = BaseMeta;
|
||||
export type Meta = BaseMeta;
|
||||
|
||||
export const Set = BaseSet;
|
||||
export type Set = BaseSet;
|
||||
|
||||
export interface IAbility {
|
||||
name: string;
|
||||
text: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface IAttack {
|
||||
convertedEnergyCost: string;
|
||||
cost: string[];
|
||||
damage: string;
|
||||
name: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export interface IQuery {
|
||||
name: string;
|
||||
value: string | number;
|
||||
}
|
||||
|
||||
export const Card = BaseCard;
|
||||
export type Card = BaseCard;
|
||||
export interface IResistance {
|
||||
type: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export const Ability = BaseAbility;
|
||||
export type Ability = BaseAbility;
|
||||
|
||||
export const Attack = BaseAttack;
|
||||
export type Attack = BaseAttack;
|
||||
|
||||
export const Set = BaseSet;
|
||||
export type Set = BaseSet;
|
||||
|
||||
export const Type = BaseType;
|
||||
export type Type = BaseType;
|
||||
export interface IWeakness {
|
||||
type: string;
|
||||
value: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user