GoogleChrome / GoogleChrome/workbox

Bug: Incorrect type definition of CleanupResult

Open
#3,400 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13k
Forks
880
Avg merge
2h 44m
Merged PRs (30d)
8

Description

According to the type definition, CleanupResult should have a property “deletedCacheRequests”. The PrecacheController returns a CleanupResult in the activate function, but instead of the “deletedCacheRequests” property you get “deletedURLs”

Type Definition CleanupResult:
https://github.com/GoogleChrome/workbox/blob/v7/packages/workbox-precaching/src/_types.ts#L17

Implementation of activate Function:
https://github.com/GoogleChrome/workbox/blob/v7/packages/workbox-precaching/src/PrecacheController.ts#L267

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.