mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Evaluate lazily android specific global values
This commit is contained in:
8
utils/lazy.d.ts
vendored
Normal file
8
utils/lazy.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
declare module "utils/lazy" {
|
||||
/**
|
||||
* A function that evaluates the action only once.
|
||||
* @param action The action to be evaluated to get the result.
|
||||
* Returns the evaluated result.
|
||||
*/
|
||||
export default function lazy<T>(action: () => T): () => T;
|
||||
}
|
||||
Reference in New Issue
Block a user