Skip to content

Commit

Permalink
fix: make useAsset's onProgress callback optional (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jul 18, 2024
1 parent 62dd2ea commit f157dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useAsset<T>(
/** @description Asset options. */
options: (UnresolvedAsset<T> & AssetRetryOptions) | string,
/** @description A function to be called when the asset loader reports loading progress. */
onProgress: ProgressCallback,
onProgress?: ProgressCallback,
)
{
if (typeof window === 'undefined')
Expand Down

0 comments on commit f157dd3

Please sign in to comment.