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

Export options types #832

Closed
skycoop opened this issue Nov 2, 2024 · 1 comment · Fixed by #833
Closed

Export options types #832

skycoop opened this issue Nov 2, 2024 · 1 comment · Fixed by #833

Comments

@skycoop
Copy link
Contributor

skycoop commented Nov 2, 2024

Feature description

I was previously using the options type provided in the DefinitelyTyped package (i.e. V7Options) to type a function that passed through options to the UUID constructor. I would love if those options types were exported by UUID v11

Additional information

I can work around the issue by declaring a type type V7Options = Parameters<typeof v7>[0], but it's a little clunky compared to having access to the type directly

@broofa
Copy link
Member

broofa commented Nov 2, 2024

I'd be happy to take a look at a PR. :-)

Note: Such a PR should treat the options arg consistently for all v1-v7 methods similarly)

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

Successfully merging a pull request may close this issue.

2 participants