docopt: fix export format

This commit is contained in:
Valérian Galliat
2017-09-25 10:33:55 -04:00
parent ea0d14ce5f
commit 40dc2228bb
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import docopt = require("docopt");
import { docopt } from "docopt";
var doc = `
Usage:
+1 -3
View File
@@ -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'] */