fix: volar error 수정

- getNPCColor 반환형
This commit is contained in:
Hide_D authored and Gitea committed 2022-02-05 07:43:27 +00:00
1 parent 5b043eb6a4
commit 5626b9e626
4 files changed
+7 -7

No files matched your search

+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;
}