Skip to content

Commit

Permalink
fix(types): empty relic typing (#470)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Aug 27, 2023
1 parent 8bac868 commit 1cd2d57
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/parser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ class Parser {
else if (item.type === 'Ship Decoration') item.category = 'Skins';
else if (item.type === 'Gem') item.category = 'Resources';
else if (item.type === 'Plant') item.category = 'Resources';
else if (item.type === 'Relic') item.category = 'Relics';
else item.category = 'Misc';
break;

Expand Down
1 change: 1 addition & 0 deletions build/scraper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Scraper {
// If this call is successful, it means that the origin server is available.
await this.fetchEndpoints(true, 'en');
} catch (err) {
console.error(err);
// Origin server not available, fall back to content server
this.originServerAvailable = false;
console.warn(
Expand Down
3 changes: 1 addition & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ declare module 'warframe-items' {
tradable: true;
drops?: Drop[];
}
interface EmptyRelic extends Omit<Relic, 'marketInfo' | 'category' | 'tradable' | 'vaultDate' | 'vaulted'> {
category: 'Misc';
interface EmptyRelic extends Omit<Relic, 'marketInfo' | 'tradable' | 'vaultDate' | 'vaulted'> {
tradable: false;
locations: [];
rewards: [];
Expand Down

0 comments on commit 1cd2d57

Please sign in to comment.