mirror of
https://github.com/motajs/template.git
synced 2026-11-01 22:24:31 +08:00
style: LF -> CRLF
This commit is contained in:
1 parent
f6383e41e8
commit
8677271b69
3 files changed
+13
-11
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { isNil } from 'lodash-es';
|
||||
import { IDataCommon, ItemCategory, SaveCompression } from '@user/data-common';
|
||||
import { HeroEquipsStore } from './equipment';
|
||||
import { HeroEquipsStore } from './equipStore';
|
||||
import {
|
||||
IHeroItems,
|
||||
IHeroItemSave,
|
||||
@@ -25,7 +25,7 @@ export class HeroItems<THero> implements IHeroItems<THero> {
|
||||
* 将 item 参数解析为 num,字符串 id 通过 tileStore 转换为 num
|
||||
* @param item 道具图块数字或 id
|
||||
*/
|
||||
private resolveNum(item: number | string): number | null {
|
||||
private resolveNum(item: number | string): number | undefined {
|
||||
if (typeof item === 'number') return item;
|
||||
return this.state.tileStore.idToNumber(item);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user