Skip to content

Commit 8128941

Browse files
Added TypeScript definitions
1 parent 2b444e6 commit 8128941

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

insomnia.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare module "nativescript-insomnia" {
2+
3+
/**
4+
* Make the screen not dim (and eventually lock the device).
5+
*/
6+
export function keepAwake(): Promise<any>;
7+
8+
/**
9+
* Be a good citizen and allow the device some sleep when you're done.
10+
*/
11+
export function allowSleepAgain(): Promise<any>;
12+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-insomnia",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Make the screen not dim (and eventually lock the device) while Insomnia is active",
55
"main": "insomnia.js",
66
"nativescript": {

0 commit comments

Comments
 (0)