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 missing types from tuf-js pkg #433

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

bdehamer
Copy link
Collaborator

@bdehamer bdehamer commented Aug 17, 2023

Exports the UpdaterOptions and Config types used by the Updater.

Previously, you had to go through some weird contortions to get ahold of the Config type:

const config: ConstructorParameters<typeof Updater>[0]['config'] = {
  fetchTimeout: 5000,
};

Now consumers can simply do:

const config: Config = {
  fetchTimeout: 5000,
};

Signed-off-by: Brian DeHamer <bdehamer@github.com>
@bdehamer bdehamer changed the title export Config type from tuf-js pkg export missing types from tuf-js pkg Aug 17, 2023
@bdehamer bdehamer merged commit 00bdeea into main Aug 18, 2023
18 checks passed
@bdehamer bdehamer deleted the bdehamer/export-config-type branch August 18, 2023 14:40
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 this pull request may close these issues.

2 participants