Skip to content

Commit

Permalink
Merge pull request #56 from C-Garza/fix-typings
Browse files Browse the repository at this point in the history
Fix ListEndpointOptions interface in typings file
  • Loading branch information
C-Garza authored Dec 17, 2021
2 parents 4f533c8 + 1392d62 commit dfcc9f4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion generator/TypesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function generateFinalFile(types: string) {
namespace.formatText();

// Add the root endpoint interval
namespace.addInterface({
rootModule.addInterface({
name: 'ListEndpointOptions',
properties: [{
name: 'offset',
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pokedex-promise-v2",
"type": "module",
"version": "4.0.0",
"version": "4.0.1",
"description": "A library used to get information about Pokemons.",
"engines": {
"node": ">=12"
Expand Down
16 changes: 8 additions & 8 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1978,15 +1978,15 @@ declare module 'pokedex-promise-v2' {
/** The versions this version group owns. */
versions: NamedAPIResource[];
}
}

interface ListEndpointOptions {
/** The offset to be used in the request */
offset?: number;
/** The limit to be used in the request */
limit?: number;
/** The limit of the cache in milliseconds */
cacheLimit?: number;
}
interface ListEndpointOptions {
/** The offset to be used in the request */
offset?: number;
/** The limit to be used in the request */
limit?: number;
/** The limit of the cache in milliseconds */
cacheLimit?: number;
}

interface PokeAPIOptions {
Expand Down

0 comments on commit dfcc9f4

Please sign in to comment.