@rbxts/types 1.0.680 → 1.0.681
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8101,7 +8101,7 @@ interface ContentProvider extends Instance {
|
|
|
8101
8101
|
*/
|
|
8102
8102
|
PreloadAsync(
|
|
8103
8103
|
this: ContentProvider,
|
|
8104
|
-
contentIdList: Array<Instance>,
|
|
8104
|
+
contentIdList: Array<Instance | string>,
|
|
8105
8105
|
callback?: (contentId: string, status: Enum.AssetFetchStatus) => void,
|
|
8106
8106
|
): void;
|
|
8107
8107
|
readonly AssetFetchFailed: RBXScriptSignal<(assetId: string) => void>;
|
package/include/roblox.d.ts
CHANGED
|
@@ -2216,6 +2216,11 @@ declare function delay(delayTime: number, callback: DelayedCallback): void;
|
|
|
2216
2216
|
* @deprecated use os.clock() instead.
|
|
2217
2217
|
*/
|
|
2218
2218
|
declare function elapsedTime(): number;
|
|
2219
|
+
/**
|
|
2220
|
+
* Returns the total memory heap size in kilobytes.
|
|
2221
|
+
* The number reflects the current heap consumption from the operating system perspective, which fluctuates over time as garbage collector frees objects.
|
|
2222
|
+
*/
|
|
2223
|
+
declare function gcinfo(): number;
|
|
2219
2224
|
/** Runs the supplied ModuleScript if it has not been run already, and returns what the ModuleScript returned (in both cases).
|
|
2220
2225
|
|
|
2221
2226
|
If the ModuleScript the user wants to use has been uploaded to Roblox (with the instance’s name being ‘MainModule’), it can be loaded by using the require function on the asset ID of the ModuleScript, though only on the server. */
|