DefinitelyTyped/types/openurl/openurl-tests.ts
Felix Hao 2e2227cdde Add package: openurl & openurl2 (#40065)
* add package: openurl & openurl2

* fix lint
2019-11-05 11:18:42 -08:00

9 lines
240 B
TypeScript

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" }
);