pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
19 lines (18 loc) • 402 B
TypeScript
export type ArrayFixed<T, L extends number> = [T, ...Array<T>] & {
length: L;
};
export type Dict<T> = {
[key: string]: T;
};
/**
* A collection of utility functions used by Pixi, but also handy for your games and applications.
*
* ```js
* import { isWebGLSupported } from 'pixi.js';
*
* if (isWebGLSupported()) {
* // WebGL is supported, proceed!
* }
* ```
* @namespace utils
*/