diff --git a/src/user-interface.ts b/src/user-interface.ts index bb218b9..fbb8371 100644 --- a/src/user-interface.ts +++ b/src/user-interface.ts @@ -1,4 +1,4 @@ -import passwordPrompt from 'password-prompt'; +import passwordPrompt = require('password-prompt'); import { waitForUser } from './utils'; /** diff --git a/types/password-prompt.d.ts b/types/password-prompt.d.ts index 35de5a7..c1103f7 100644 --- a/types/password-prompt.d.ts +++ b/types/password-prompt.d.ts @@ -1 +1,9 @@ -export default function(prompt: string): Promise; +export = prompt; +declare function prompt( + ask: string, + options?: { + method: 'hide' | 'mask'; + required: boolean; + default?: string; + } +): Promise;