From 98bc49403070408c030edede89c0b9449170d0b5 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Thu, 15 Jun 2017 14:32:33 -0700 Subject: [PATCH] node-getopt: Fix type of `create` --- types/node-getopt/index.d.ts | 2 +- types/node-getopt/node-getopt-tests.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/node-getopt/index.d.ts b/types/node-getopt/index.d.ts index afd0a89adf..cb08791fc3 100644 --- a/types/node-getopt/index.d.ts +++ b/types/node-getopt/index.d.ts @@ -122,7 +122,7 @@ declare class Getopt { * equals new Getopt(options) * @param options */ - static create(options: string[]): Getopt; + static create(options: string[][]): Getopt; } export = Getopt; diff --git a/types/node-getopt/node-getopt-tests.ts b/types/node-getopt/node-getopt-tests.ts index 7427731ca8..2ba3afd01d 100644 --- a/types/node-getopt/node-getopt-tests.ts +++ b/types/node-getopt/node-getopt-tests.ts @@ -34,7 +34,7 @@ function help() { function onedragon() { // examples/onedragon.js - var opt = require('node-getopt').create([ + var opt = Getopt.create([ ['s' , '' , 'short option.'], ['' , 'long' , 'long option.'], ['S' , 'short-with-arg=ARG' , 'option with argument'], @@ -52,7 +52,7 @@ function onedragon() { function online(){ // node-getopt oneline example. - var opt = require('..').create([ + var opt = Getopt.create([ ['s' , '' , 'short option.'], ['' , 'long' , 'long option.'], ['S' , 'short-with-arg=ARG' , 'option with argument'],