mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 02:02:41 +08:00
9f89b0ef24
* Temp * temp * move ui core * Arrange ui and terrain * Fix import path for all modules except core * Move primitives into core * Fix debug.getError * Move audio-downloader to audio module * export game from game.ts * Migrate load-pipeline to ts * Fix core modules and cleanup * Move animation into core * Fix module exports * Fix director issue * Remove most cc.director usage * Fix ts issues * Fix issues for unit test and editor running * Revert removing deprecated import * tweaks * tweaks * Fix ci * Fix ci * Add modules in module division * Upgrade coordinates-converts-utils
14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
/**
|
|
* @category loader
|
|
*/
|
|
|
|
type LoadSuccessParams<T> = Parameters<(error: null | undefined, asset: T) => void>;
|
|
|
|
type LoadErrorParams<T> = Parameters<(error: Error) => void>;
|
|
|
|
export type LoadCallbackParams<T> = LoadSuccessParams<T> | LoadErrorParams<T>;
|
|
|
|
export type LoadCompleteCallback<T> = (...args: LoadCallbackParams<T>) => void;
|
|
|
|
export type LoadProgressCallback = (completedCount: number, totalCount: number, item: any) => void;
|