isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
18 lines (17 loc) • 382 B
text/typescript
/**
* A type union that matches `Entity`, `EntityBomb`, `EntityEffect`, and so on.
*
* This is useful for building generic functions that should accept any kind of entity.
*/
export type AnyEntity =
| Entity
| EntityBomb
| EntityEffect
| EntityFamiliar
| EntityKnife
| EntityLaser
| EntityNPC
| EntityPickup
| EntityPlayer
| EntityProjectile
| EntityTear;