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

TypeScript types #41

Closed
carlosbaraza opened this issue Sep 30, 2020 · 1 comment
Closed

TypeScript types #41

carlosbaraza opened this issue Sep 30, 2020 · 1 comment

Comments

@carlosbaraza
Copy link

carlosbaraza commented Sep 30, 2020

I could not find an easy way to get the types for the Ref, so I am typing it myself. However, it'd be quite nice if this was coming with the library:

type LoadingBarRef = {
  add(value: number): void;
  decrease(value: number): void;
  continuousStart(startingValue?: number, refreshRate?: number): void;
  staticStart(startingValue: number): void;
  complete(): void;
};
@klendi
Copy link
Owner

klendi commented Nov 20, 2021

They are now exported

@klendi klendi closed this as completed Nov 20, 2021
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

2 participants