Re: [w3c/ServiceWorker] Declarative routing (#1373)

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