Skip to content

Commit ace2d5f

Browse files
committed
type
1 parent ac858e7 commit ace2d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-assets-retry/src/runtime/asyncChunkRetry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ function ensureChunk(chunkId: string): Promise<unknown> {
324324

325325
function loadScript() {
326326
// biome-ignore lint/style/noArguments: allowed
327-
const args = Array.prototype.slice.call(arguments);
327+
const args = Array.prototype.slice.call(arguments) as Parameters<LoadScript>;
328328
const retry = globalCurrRetrying[args[3]];
329329
if (retry) {
330330
args[0] = retry.nextRetryUrl;
331331
}
332-
return originalLoadScript.apply(null, args as Parameters<LoadScript>);
332+
return originalLoadScript.apply(null, args);
333333
}
334334

335335
function registerAsyncChunkRetry() {

0 commit comments

Comments
 (0)