mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
docopt: fix export format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import docopt = require("docopt");
|
||||
import { docopt } from "docopt";
|
||||
|
||||
var doc = `
|
||||
Usage:
|
||||
|
||||
Vendored
+1
-3
@@ -6,9 +6,7 @@
|
||||
/**
|
||||
* @param doc should be a string with the help message, written according to rules of the docopt language.
|
||||
*/
|
||||
declare function docopt(doc: string, options: DocoptOption): any;
|
||||
|
||||
export = docopt;
|
||||
export function docopt(doc: string, options: DocoptOption): any;
|
||||
|
||||
interface DocoptOption {
|
||||
/** is an optional argument vector. It defaults to the arguments passed to your program (process.argv[2..]). You can also supply it with an array of strings, as with process.argv. For example: ['--verbose', '-o', 'hai.txt'] */
|
||||
|
||||
Reference in New Issue
Block a user