UNPKG

@thebadams/5e-srd-sdk

Version:

An NPM module that links into the Dungeons and Dragons 5e SRD API found at https://www.dnd5eapi.co, built using typescript

16 lines 749 B
export declare type SpellLevels = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; export interface SpellsQueryConfig { school?: SpellSchools[] | SpellSchools; level?: SpellLevels[] | SpellLevels; index?: string; } export declare type SpellSchools = 'Abjuration' | 'Evocation' | 'Divination' | 'Necromancy' | 'Enchantment' | 'Transmutation' | 'Illusion' | 'Conjuration'; export default abstract class Spell { #private; static FindAll(): Promise<any>; static GetByIndex(index: string): Promise<any>; static FindByLevels(levelsArray: SpellLevels[]): Promise<any>; static FindBySchool(schoolsArray: SpellSchools[]): Promise<any>; static Find(queryConfig: SpellsQueryConfig): Promise<any>; } //# sourceMappingURL=Spell.d.ts.map