

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: State
incomplete
2: PokeAPI
incomplete
3: Caching
incomplete
4: Explore
incomplete
5: Catch
incomplete
6: Inspect
incomplete
This lesson's interactive features are locked, please to keep using them
After using the map commands, we want our users to be able to see a list of all the Pokémon in a given area.
Pokedex > explore pastoria-city-area
Exploring pastoria-city-area...
Found Pokemon:
- tentacool
- tentacruel
- magikarp
- gyarados
- remoraid
- octillery
- wingull
- pelipper
- shellos
- gastrodon
Pokedex >
export async function commandExit(state: State): Promise<void> {}
This works because variadic parameters (...args) are treated as optional in TypeScript. A function satisfies a type as long as it includes all required parameters and matches the return type.
npm run dev | tee repl.log
Once in the REPL, run the following commands:
explore pastoria-city-areaexitRun and submit the CLI tests.