UNPKG

blaze-2d

Version:

A fast and simple WebGL 2 2D game engine written in TypeScript

10 lines (9 loc) 314 B
/** * Validates a z index. * * Does not check to see if the z index exceeds `zLevels` defined in {@link Blaze}. * * @param zIndex The z index to validate * @returns true when valid or a string containing the reason for being invalid */ export default function validateZIndex(zIndex: number): true | string;