Skip to content

Commit

Permalink
fix(types): remove eventemitter (#765 by @Cahllagerfeld)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cahllagerfeld committed Sep 28, 2023
1 parent 0d978c5 commit d4923bf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/toolbox/prompt-enquirer-types.ts
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -87,15 +85,15 @@ export type PromptOptions =
| SnippetPromptOptions
| SortPromptOptions

declare class BasePrompt extends EventEmitter {
declare class BasePrompt {
constructor(options?: PromptOptions)

render(): void

run(): Promise<any>
}

declare class Enquirer<T = object> extends EventEmitter {
declare class Enquirer<T = object> {
constructor(options?: object, answers?: T)

/**
Expand Down

0 comments on commit d4923bf

Please sign in to comment.