Skip to content

Instantly share code, notes, and snippets.

@Zaphodious
Created April 5, 2018 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zaphodious/4ecf1e559c74601f7eb20c479c38579c to your computer and use it in GitHub Desktop.
Save Zaphodious/4ecf1e559c74601f7eb20c479c38579c to your computer and use it in GitHub Desktop.
Partial progress on workbox externs.
var workbox = {
clientsClaim: function(){},
loadModule: function(string){},
setConfig: function(object){},
skipWaiting: function(){},
core: {
cacheNames: {},
LOG_LEVELS: {},
setCacheNameDetails: function(){},
setLogLevel: function(){},
},
precaching: {
PrecacheController: {},
addPlugins: function(){},
addRoute: function (object){},
precache: function(){},
precacheAndRoute: function(){},
supressWarnings: function(){},
CleanupResult: {},
InstallResult: {},
PrecacheEntry: {},
},
strategies: {
cacheFirst: function(){},
cacheOnly: function(){},
networkFirst: function(){},
networkOnly: function(){},
staleWhileRevalidate: function(){},
},
routing: {},
expiration: {},
backgroundSync: {},
googleAnalytics: {},
cacheableResponse: {},
broadcastUpdate: {},
rangeRequests: {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment