UNPKG

@pixi/utils

Version:

Collection of utilities used by PixiJS

13 lines (12 loc) 708 B
/** * Helper for warning developers about deprecated features & settings. * A stack track for warnings is given; useful for tracking-down where * deprecated methods/properties/classes are being used within the code. * @memberof PIXI.utils * @function deprecation * @param {string} version - The version where the feature became deprecated * @param {string} message - Message should include what is deprecated, where, and the new solution * @param {number} [ignoreDepth=3] - The number of steps to ignore at the top of the error stack * this is mostly to ignore internal deprecation calls. */ export declare function deprecation(version: string, message: string, ignoreDepth?: number): void;