@types/opn
Advanced tools
Comparing version 3.0.21-alpha to 3.0.22-alpha
112
index.d.ts
@@ -9,2 +9,57 @@ // Type definitions for opn 3.0.2 | ||
import * as cp from "child_process"; | ||
interface DefaultFunction { | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
*/ | ||
(target: string): cp.ChildProcess; | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
* @param callback- Called when the opened app exits, or if `wait: false`, immediately when opening. | ||
*/ | ||
(target: string, callback: (err: Error) => void): cp.ChildProcess; | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
* @param options - Options to be passed to opn. | ||
*/ | ||
(target: string, options: Opn.Options): cp.ChildProcess; | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
* @param options - Options to be passed to opn. | ||
* @param callback- Called when the opened app exits, or if `wait: false`, immediately when opening. | ||
*/ | ||
(target: string, options: Opn.Options, callback: (err: Error) => void): cp.ChildProcess; | ||
} | ||
declare var opn: DefaultFunction; | ||
export = opn; | ||
declare namespace Opn { | ||
@@ -27,58 +82,1 @@ export interface Options { | ||
} | ||
declare module "opn" { | ||
import * as cp from "child_process"; | ||
interface DefaultFunction { | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
*/ | ||
(target: string): cp.ChildProcess; | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
* @param callback- Called when the opened app exits, or if `wait: false`, immediately when opening. | ||
*/ | ||
(target: string, callback: (err: Error) => void): cp.ChildProcess; | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
* @param options - Options to be passed to opn. | ||
*/ | ||
(target: string, options: Opn.Options): cp.ChildProcess; | ||
/** | ||
* Uses the command open on OS X, start on Windows and xdg-open on other platforms. | ||
* | ||
* Returns the spawned child process. | ||
* You'd normally not need to use this for anything, but it can be useful if you'd like | ||
* to attach custom event listeners or perform other operations directly on the spawned process. | ||
* | ||
* @param target - The thing you want to open. Can be a URL, file, or executable. Opens in the default app for the file type. Eg. URLs opens in your default browser. | ||
* @param options - Options to be passed to opn. | ||
* @param callback- Called when the opened app exits, or if `wait: false`, immediately when opening. | ||
*/ | ||
(target: string, options: Opn.Options, callback: (err: Error) => void): cp.ChildProcess; | ||
} | ||
const opn: DefaultFunction; | ||
export = opn; | ||
} |
{ | ||
"name": "@types/opn", | ||
"version": "3.0.21-alpha", | ||
"version": "3.0.22-alpha", | ||
"description": "TypeScript definitions for opn 3.0.2", | ||
@@ -8,7 +8,11 @@ "main": "", | ||
"author": "Shinnosuke Watanabe <https://github.com/shinnn>,", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
}, | ||
"license": "MIT", | ||
"typings": "index.d.ts", | ||
"dependencies": { | ||
"@types/node": "*" | ||
"@types/node": "4.0.*" | ||
} | ||
} |
@@ -11,9 +11,9 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 25 May 2016 04:20:28 GMT | ||
* File structure: OldUMD | ||
* Last updated: Fri, 01 Jul 2016 18:42:30 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: node | ||
* Module Dependencies: none | ||
* Global values: none | ||
* Module Dependencies: child_process | ||
* Global values: opn | ||
# Credits | ||
These definitions were written by Shinnosuke Watanabe <https://github.com/shinnn>,. |
@@ -7,3 +7,5 @@ { | ||
], | ||
"moduleDependencies": [], | ||
"moduleDependencies": [ | ||
"child_process" | ||
], | ||
"libraryMajorVersion": "3", | ||
@@ -16,4 +18,6 @@ "libraryMinorVersion": "0", | ||
"sourceBranch": "types-2.0", | ||
"kind": "OldUMD", | ||
"globals": [], | ||
"kind": "ProperModule", | ||
"globals": [ | ||
"opn" | ||
], | ||
"declaredModules": [ | ||
@@ -25,3 +29,3 @@ "opn" | ||
], | ||
"contentHash": "82537799effcf231933635c44b25dec9b93d2834b8f781c2d6b54e5c6c54279b" | ||
"contentHash": "9c7b729067f31b32b3b5b07695220e8e71a509b5c9183beea9da5a221e2c7b46" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
98
0
5583
+ Added@types/node@4.0.48(transitive)
- Removed@types/node@22.10.1(transitive)
- Removedundici-types@6.20.0(transitive)
Updated@types/node@4.0.*