mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00

* Add `releaseNativeObject` function in `utils` * Add tests * Add typings for the global `__releaseNativeCounterpart` functions provided by Android and iOS runtimes refs https://github.com/NativeScript/ios-runtime/issues/1062 and https://github.com/NativeScript/android-runtime/issues/1254
18 lines
398 B
TypeScript
18 lines
398 B
TypeScript
/// <reference path="interop.d.ts" />
|
|
|
|
/**
|
|
* Triggers garbage collection in JavaScript
|
|
*/
|
|
declare function __collect(): void;
|
|
|
|
/**
|
|
* Releases the reference to the wrapped native object
|
|
* @param object The Objective-C object to release.
|
|
*/
|
|
declare function __releaseNativeCounterpart(object: NSObject): void;
|
|
|
|
/**
|
|
* Gets accurate system timestamp in ms.
|
|
*/
|
|
declare function __time(): Number;
|