UNPKG

jparticles

Version:

A lightweight, efficient and easy-to-use Canvas library for building some cool particle effects.

14 lines (12 loc) 407 B
/** * 重新定义 parseInt 函数 * TypeScript 定义 parseInt 第一个参数只能接受 string 类型,实际还可以接受 number 类型 */ declare function parseInt(s: string | number, radix?: number): number /** * 添加 window 对象兼容属性 */ interface Window { mozRequestAnimationFrame?: AnimationFrameProvider['requestAnimationFrame'] WebKitMutationObserver?: MutationObserver }