emibcn / service-worker-updater

Documentation comments not found for functions and classes JS-D1001
Documentation
Minor
6 months ago6 months old
Documentation comment not found for function declaration unregister
133    })
134}
135
136export function unregister(): void {137  if ('serviceWorker' in navigator) {
138    navigator.serviceWorker.ready
139      .then((registration) => {
Documentation comment not found for function declaration registerValidSW
 59  }
 60}
 61
 62function registerValidSW(swUrl: string, config?: Config) { 63  navigator.serviceWorker
 64    .register(swUrl)
 65    .then((registration) => {
Documentation comment not found for function declaration register
 25  onUpdate?: (registration: ServiceWorkerRegistration) => void
 26}
 27
 28export function register(config?: Config): void { 29  if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
 30    // The URL constructor is available in all browsers that support SW.
 31    const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href)
Documentation comment not found for method definition isUpdateNeeded
 9    // Do nothing
10  }
11
12  isUpdateNeeded(): boolean {13    return false
14  }
15}
Documentation comment not found for class NullPersistenceService
 1import PersistenceService from './persistenceService'
 2
 3class NullPersistenceService implements PersistenceService { 4  setUpdateIsNeeded(): void {
 5    // Do nothing
 6  }