Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing typings for MultiSelect #393

Open
arackaf opened this issue Mar 12, 2022 · 3 comments
Open

Missing typings for MultiSelect #393

arackaf opened this issue Mar 12, 2022 · 3 comments

Comments

@arackaf
Copy link

arackaf commented Mar 12, 2022

Hey great library. One small issue I ran into:

import { MultiSelect } from 'enquirer';

is an error in TS. Workaround, for anyone landing here from Google, is simple

// @ts-ignore
import { MultiSelect } from 'enquirer';
@jarrodek
Copy link

I have the same problem with the Select prompt in my TS project. The lib/ should also have d.ts files. Maybe I can help building it?

@ctjlewis
Copy link

ctjlewis commented Nov 4, 2022

TS holdouts are a lot of fun. What's in the library, we'll never know! It's like a fun mystery black box.

@neodon
Copy link

neodon commented Aug 25, 2023

Looks like the exported type definitions don't match the actual exported things at all. The example code in the README all works, but TypeScript shows errors for every example.

image

Edit: Actually just ignoring the type errors isn't enough. The actual exported items are not defined correctly:

import { AutoComplete } from 'enquirer'
         ^
SyntaxError: The requested module 'enquirer' does not provide an export named 'AutoComplete'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants