- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 08 Jan 2019 07:51:20 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 8 January 2019 15:51:41 UTC
Yeah, so either `OptionsDictionaryType` would be a union, or you would just use `object` and convert using prose. But even then, the "invalid" should not cause an error; it just gets ignored. That's how it would work with constructor options as well. I'll note that you could also consider the design ```js [ { type: 'network', request: '/' }, { type: 'cache', ignoreSearch: true }, { type: 'network' } ] ``` which will still require some prose I think, but is a bit less weird. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1373#issuecomment-452347737
Received on Tuesday, 8 January 2019 15:51:41 UTC