Skip to content

Commit

Permalink
fix: make useAsset's onProgress callback optional
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Jul 17, 2024
1 parent 62dd2ea commit 883561e
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 883561e

Please sign in to comment.