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

Wrong Type in question() #435

Closed
olebergen opened this issue Jun 13, 2022 · 1 comment
Closed

Wrong Type in question() #435

olebergen opened this issue Jun 13, 2022 · 1 comment

Comments

@olebergen
Copy link

Expected Behavior

The options object in the type declaration of question() should be optional. In the JavaScript file itself it is assumed to be undefined as well: Array.isArray(options?.choices)

Actual Behavior

It is required:

export declare function question(query: string, options: {
    choices: string[];
}): Promise<unknown>;

Specifications

  • Version: 6.2.4
olebergen added a commit to olebergen/zx that referenced this issue Jun 13, 2022
This was referenced Jun 13, 2022
@antonmedv
Copy link
Collaborator

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

Successfully merging a pull request may close this issue.

2 participants