fix: volar error 수정

- getNPCColor 반환형
This commit is contained in:
2022-02-05 07:43:27 +00:00
committed by Gitea
parent 5b043eb6a4
commit 5626b9e626
4 changed files with 7 additions and 7 deletions
+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;
}