UNPKG

react-simple-game-engine

Version:

[WIP] not able to use in currently. <!-- Document cumming soon... -->

21 lines 1.07 kB
import { Sound } from "./classes/sound"; import { SoundType } from "./export-enums"; import { Avatar } from "./export-types"; export declare function createAssetImage(src: string): Promise<Avatar>; export declare function createAssetSound(src: string, type?: SoundType): Promise<Sound>; export declare function tick(delay?: number): Promise<unknown>; export declare function copyProperties(source: Record<string, any>, target: Record<string, any>): void; export declare function parallel<T = any, S = T>(items: T[], each: (t: T, iter: { index: number; realIndex: number; }) => Promise<S>, limit?: number): Promise<S[]>; export declare function useWindowSize(): { width: number; height: number; }; export declare function toText(obj: Record<string, any> | Record<string, any>[]): string | Record<string, any>; export declare function getClassName(cls: string): string; export declare function genId(length?: number): string; export declare function getPlatform(): any; export declare function isRealPhone(): boolean; //# sourceMappingURL=utils.d.ts.map