typeWebPushConfig={ Â Â Â Â fetch?:FetchLike; Â Â Â Â gcm?:{apiKey?:string|null}; Â Â Â Â vapid:{privateKey:string;publicKey:string;subject:string|URL}; }
Override for the fetch implementation notify() uses to send the request.
Defaults to the global fetch. Useful in runtimes without one, or to plug in
a wrapped/instrumented fetch (retries, logging, proxying, etc.) - or to route around a
host environment (e.g. a dev server) that's replaced the global fetch with something
that mishandles the manually-set Content-Length header generateRequest() always sends.
Override for the
fetchimplementationnotify()uses to send the request. Defaults to the globalfetch. Useful in runtimes without one, or to plug in a wrapped/instrumented fetch (retries, logging, proxying, etc.) - or to route around a host environment (e.g. a dev server) that's replaced the globalfetchwith something that mishandles the manually-set Content-Length headergenerateRequest()always sends.