fix: volar error 수정

- getNPCColor 반환형
This commit is contained in:
2022-01-28 01:09:21 +09:00
parent e6863539a0
commit 3611ee6cfe
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -105,7 +105,7 @@
<NumberInputWithInfo
title="입찰 포인트"
:min="inheritActionCost.minSpecificUnique"
:max="this.items.previous"
:max="items.previous"
v-model="specificUniqueAmount"
/>
</div>
+3 -3
View File
@@ -67,7 +67,7 @@
>유저전투장에게 주는 금입니다. 이보다 적으면 포상합니다. <br />
0이면 유저전투장 긴급포상 금의 2배를 기준으로 하며, 수치는 현재
{{
(calcPolicyValue("reqHumanWarUrgentGold") * 2).toLocaleString()
(calcPolicyValue("reqHumanWarUrgentGold") as number * 2).toLocaleString()
}}입니다.</NumberInputWithInfo
>
</div>
@@ -79,7 +79,7 @@
>유저전투장에게 주는 쌀입니다. 이보다 적으면 포상합니다. <br />
0이면 유저전투장 긴급포상 쌀의 2배를 기준으로 하며, 수치는 현재
{{
(calcPolicyValue("reqHumanWarUrgentRice") * 2).toLocaleString()
(calcPolicyValue("reqHumanWarUrgentRice") as number * 2).toLocaleString()
}}입니다.</NumberInputWithInfo
>
</div>
@@ -505,7 +505,7 @@ type SetterInfo = {
};
declare const lastSetters: {
polcy: SetterInfo;
policy: SetterInfo;
nation: SetterInfo;
general: SetterInfo;
};
+1 -1
View File
@@ -44,7 +44,7 @@
<div
v-for="([endYear, endMonth], _idx) in [
parseYearMonth(
joinYearMonth(year, month) + nation.diplomacy.term
joinYearMonth(year, month) + (nation.diplomacy.term??0)
),
]"
:key="_idx"
+2 -2
View File
@@ -79,7 +79,7 @@ function br2nl (text) {
}
*/
export function getNpcColor(npcType: number): 'skyblue' | 'cyan' | 'deepskyblue' | 'darkcyan' | 'mediumaquamarine' | null {
export function getNpcColor(npcType: number): 'skyblue' | 'cyan' | 'deepskyblue' | 'darkcyan' | 'mediumaquamarine' | undefined {
if (npcType == 6){
return 'mediumaquamarine';
}
@@ -95,5 +95,5 @@ export function getNpcColor(npcType: number): 'skyblue' | 'cyan' | 'deepskyblue'
if (npcType == 1) {
return 'skyblue';
}
return null;
return undefined;
}