Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
fix typescript issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Mar 25, 2022
1 parent 1d4d83f commit 5e58560
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
/build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typed-hypixel-api",
"version": "0.1.0",
"main": "src/index.ts",
"main": "build/index.js",
"repository": "https://github.com/skyblockstats/typed-hypixel-api.git",
"author": "mat <[email protected]>",
"license": "MIT",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface SkyBlockItemsResponse {
npc_sell_price?: number
essence: {
essence_type: string
costs: nummber[]
costs: number[]
}
catacombs_requirements?: {
dungeon: {
Expand All @@ -43,11 +43,11 @@ export interface SkyBlockItemsResponse {
} & ({
generator: string
generator_tier: number
}?) & ({
} | {}) & ({
material: 'SKULL_ITEM'
skin: string
}?) & ({
} | {}) & ({
material: 'LEATHER_CHESTPLATE'
color: `${number},${number},${number}`
}?))[]
} | {}))[]
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ export interface ProfileMember {
*/
achievement_spawned_island_types?: string[]
slayer_bosses?: Record<'wolf' | 'zombie' | 'spider' | 'enderman', {
claimed_levels: {
[`level_${number}`]?: true
}
[`boss_kills_tier_${number}`]?: number
claimed_levels: Record<`level_${number}`, true>
boss_kills_tier_1?: number
xp?: number
}>
} & Record<`boss_kills_tier_${number}`, number>>
pets?: []
dungeons?: {
dungeon_types: {
Expand Down Expand Up @@ -132,10 +129,9 @@ export interface ProfileMember {
harp_quest?: {
selected_song: string
selected_song_epoch: number
[`song_${string}_best_completion`]?: number,
[`song_${string}_completions`]?: number,
[`song_${string}_perfect_completions`]?: number,
}
} & Record<`song_${string}_best_completion`, number>
& Record<`song_${string}_completions`, number>
& Record<`song_${string}_perfect_completions`, number>,
active_effects: []
paused_effects?: []
visited_modes?: string[]
Expand All @@ -153,7 +149,6 @@ export interface ProfileMember {
forge?: {
forge_processes: {}
}
[`experience_skill_${string}`]?: number
unlocked_coll_tiers?: string[]
backpack_contents?: Record<number, Inventory>
quiver?: Inventory
Expand All @@ -173,4 +168,16 @@ export interface ProfileMember {
essence_wither?: Inventory
essence_spider?: Inventory
candy_inventory_contents?: Inventory

experience_skill_alchemy?: number
experience_skill_carpentry?: number
experience_skill_combat?: number
experience_skill_enchanting?: number
experience_skill_farming?: number
experience_skill_fishing?: number
experience_skill_foraging?: number
experience_skill_mining?: number
experience_skill_runecrafting?: number
experience_skill_social?: number
experience_skill_taming?: number
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */

/* Emit */
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declarationMap": true, /* Create sourcemaps for d.ts files. */
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
// "outDir": "./", /* Specify an output folder for all emitted files. */
"outDir": "./build", /* Specify an output folder for all emitted files. */
// "removeComments": true, /* Disable emitting comments. */
// "noEmit": true, /* Disable emitting files from a compilation. */
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
Expand Down

0 comments on commit 5e58560

Please sign in to comment.