PokeAPI / pokeapi-js-wrapper

PokeAPI browser wrapper, fully async with built-in cache
Mozilla Public License 2.0
278 stars 44 forks source link

Types declaration #51

Closed climaxmba closed 9 months ago

climaxmba commented 9 months ago

Add types declaration, Issue: #26

I added a declaration file that describes the Pokedex class and its methods. It will enable type annotations and autocomplete suggestions for both TypeScript and JavaScript developers. Here's how it looks:

image

// Note: Pokedex is destructured on import
import { Pokedex } from "pokeapi-js-wrapper";
Naramsim commented 9 months ago

Nice typo-squatting. You are trying to import https://www.npmjs.com/package/typescipt which probably contains malicious code. I reported the package over at NPM as well.