mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
fix: typing parity
This commit is contained in:
1 parent
96ce3c7d41
commit
615d7f06aa
6 files changed
+16
-13
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { ShellDefinition } from '../blitzkit/tankDefinitions';
|
||||
import { ShellDefinition, ShellType } from '../blitzkit/tankDefinitions';
|
||||
|
||||
export function canSplash(type: ShellDefinition['type']): type is 'he' {
|
||||
return type === 'he';
|
||||
export function canSplash(type: ShellDefinition['type']): type is ShellType.HE {
|
||||
return type === ShellType.HE;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ShellDefinition } from '../blitzkit/tankDefinitions';
|
||||
import { ShellDefinition, ShellType } from '../blitzkit/tankDefinitions';
|
||||
|
||||
export function isExplosive(
|
||||
type: ShellDefinition['type'],
|
||||
): type is 'he' | 'hc' {
|
||||
return type === 'he' || type === 'hc';
|
||||
): type is ShellType.HEAT | ShellType.HE {
|
||||
return type === ShellType.HEAT || type === ShellType.HE;
|
||||
}
|
||||
Reference in new issue
Block a user