[common] 增加多线程相关的类型提示

This commit is contained in:
SmallMain 2024-10-24 19:49:42 +08:00
parent 70d5f79795
commit 1a097e70d8
No known key found for this signature in database

28
creator-sp.d.ts vendored
View File

@ -790,6 +790,34 @@ declare module cc {
} }
declare namespace cc.AssetManager {
interface CacheManager {
/**
!#en
Get temporary path with origin url, this method only works on mini-game platforms
Use 'getTempAsync' if multithreading is enabled.
!#zh
url
线使 `getTempAsync`.
@param originUrl originUrl
*/
getTemp(originUrl: string): string;
/**
!#en
Get temporary path with origin url, this method only works on mini-game platforms
!#zh
url
@param originUrl originUrl
@param callback
*/
getTempAsync(originUrl: string, callback: (path: string) => void): void;
}
}
declare module sp { declare module sp {
/** /**