mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add types for windows-foreground-love (#40267)
This commit is contained in:
parent
8e09215e25
commit
a93bc045be
6
types/windows-foreground-love/index.d.ts
vendored
Normal file
6
types/windows-foreground-love/index.d.ts
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
// Type definitions for windows-foreground-love 0.3
|
||||
// Project: https://github.com/the-ress/node-windows-foreground-love#readme
|
||||
// Definitions by: Tereza Tomcova <https://github.com/the-ress>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function allowSetForegroundWindow(pid?: number): boolean;
|
||||
23
types/windows-foreground-love/tsconfig.json
Normal file
23
types/windows-foreground-love/tsconfig.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"windows-foreground-love-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/windows-foreground-love/tslint.json
Normal file
1
types/windows-foreground-love/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@ -0,0 +1,4 @@
|
||||
import * as wfl from "windows-foreground-love";
|
||||
|
||||
wfl.allowSetForegroundWindow(123); // $ExpectType boolean
|
||||
wfl.allowSetForegroundWindow(); // $ExpectType boolean
|
||||
Loading…
Reference in New Issue
Block a user