From 7c2de3553fa1c939f2cb031f4cd47df15b3731ca Mon Sep 17 00:00:00 2001 From: Cahllagerfeld <43843195+Cahllagerfeld@users.noreply.github.com> Date: Fri, 23 Sep 2022 07:01:22 +0000 Subject: [PATCH] fix: remove eventemitter (#1) --- src/toolbox/prompt-enquirer-types.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/toolbox/prompt-enquirer-types.ts b/src/toolbox/prompt-enquirer-types.ts index d40dbb7a..03d3e12c 100644 --- a/src/toolbox/prompt-enquirer-types.ts +++ b/src/toolbox/prompt-enquirer-types.ts @@ -1,7 +1,5 @@ // imported from https://github.com/enquirer/enquirer/blob/8d626c206733420637660ac7c2098d7de45e8590/index.d.ts -import { EventEmitter } from 'events' - interface BasePromptOptions { name: string | (() => string) type: string | (() => string) @@ -87,7 +85,7 @@ export type PromptOptions = | SnippetPromptOptions | SortPromptOptions -declare class BasePrompt extends EventEmitter { +declare class BasePrompt { constructor(options?: PromptOptions) render(): void @@ -95,7 +93,7 @@ declare class BasePrompt extends EventEmitter { run(): Promise } -declare class Enquirer extends EventEmitter { +declare class Enquirer { constructor(options?: object, answers?: T) /**