pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
17 lines (16 loc) • 363 B
TypeScript
/**
* A utility type that represents a tuple of length L containing elements of type T.
* @category utils
* @advanced
*/
export type ArrayFixed<T, L extends number> = [T, ...Array<T>] & {
length: L;
};
/**
* A dictionary type that maps string keys to values of type T.
* @category utils
* @advanced
*/
export type Dict<T> = {
[key: string]: T;
};