mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Add package: openurl & openurl2 (#40065)
* add package: openurl & openurl2 * fix lint
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
144b45d7c1
commit
2e2227cdde
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for openurl 1.0
|
||||
// Project: https://github.com/rauschma/openurl
|
||||
// Definitions by: Felix Hao <https://github.com/felixhao28>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
export function open(url: string, callback?: (err: Error) => void): void;
|
||||
export function mailto(recipients: string[], fields: {[key: string]: string}, recipientsSeparator?: string, callback?: (err: Error) => void): void;
|
||||
@@ -0,0 +1,8 @@
|
||||
import { open, mailto } from "openurl";
|
||||
open("http://rauschma.de", (e) => {
|
||||
console.log(e.message);
|
||||
});
|
||||
mailto(
|
||||
["john@example.com", "jane@example.com"],
|
||||
{ subject: "Hello!", body: "This is\nan automatically sent email!\n" }
|
||||
);
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"openurl-tests.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for openurl2 1.0
|
||||
// Project: https://github.com/rauschma/openurl
|
||||
// Definitions by: Felix Hao <https://github.com/felixhao28>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
export function open(url: string, callback?: (err: Error) => void): void;
|
||||
export function mailto(recipients: string[], fields: {[key: string]: string}, recipientsSeparator?: string, callback?: (err: Error) => void): void;
|
||||
@@ -0,0 +1,8 @@
|
||||
import { open, mailto } from "openurl2";
|
||||
open("http://rauschma.de", (e) => {
|
||||
console.log(e.message);
|
||||
});
|
||||
mailto(
|
||||
["john@example.com", "jane@example.com"],
|
||||
{ subject: "Hello!", body: "This is\nan automatically sent email!\n" }
|
||||
);
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"openurl2-tests.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user