Skip to content

Why are properties like AutoComplete not enumerable? #262

@michaelstack

Description

@michaelstack

I am new to enquirer. I started by trying to use AutoComplete in a typescript project and found that it wouldn't import with import { AutoComplete } from 'enquirer'.

I later found issue #135, so I realise that there are issues with the typescript definitions.

Before finding #135, I experimented with different imports and requires, and console.logged the resultant object. I saw that the AutoComplete property does exist, but is not enumerable.

I am curious, why is AutoComplete not enumerable?

It is part of the public interface of this package.

Is it intentionally made this way because there is some benefit?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions