add return type to getLevelKeyRewards
All checks were successful
Build / build (20) (push) Successful in 36s
Build / build (22) (push) Successful in 50s
Build / build (18) (push) Successful in 56s
Build / build (18) (pull_request) Successful in 39s
Build / build (20) (pull_request) Successful in 50s
Build / build (22) (pull_request) Successful in 58s

This commit is contained in:
Sainan 2025-02-28 06:44:01 +01:00
parent fd83c80fa1
commit 9fd2a9e674

View File

@ -29,9 +29,11 @@ import {
ExportWarframes, ExportWarframes,
ExportWeapons, ExportWeapons,
IInboxMessage, IInboxMessage,
IMissionReward,
IPowersuit, IPowersuit,
IRecipe, IRecipe,
IRegion IRegion,
TReward
} from "warframe-public-export-plus"; } from "warframe-public-export-plus";
import questCompletionItems from "@/static/fixed_responses/questCompletionRewards.json"; import questCompletionItems from "@/static/fixed_responses/questCompletionRewards.json";
@ -164,7 +166,9 @@ export const getKeyChainItems = ({ KeyChain, ChainStage }: IKeyChainRequest): st
return keyChainStage.itemsToGiveWhenTriggered; return keyChainStage.itemsToGiveWhenTriggered;
}; };
export const getLevelKeyRewards = (levelKey: string) => { export const getLevelKeyRewards = (
levelKey: string
): { levelKeyRewards?: IMissionReward; levelKeyRewards2?: TReward[] } => {
if (!(levelKey in ExportKeys)) { if (!(levelKey in ExportKeys)) {
throw new Error(`LevelKey ${levelKey} not found`); throw new Error(`LevelKey ${levelKey} not found`);
} }