Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/opn

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/opn - npm Package Compare versions

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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc