The proxy.proxyRes property could be further expressed to take one or three parameters. Its previous representation was not correct according to the documentation and default configuration the package generates.
Specified types for watchEvents, open, and logLevel options.
Converted type Object references to object per recommended guidelines of DefinitelyTyped repo.
Converted type Function references to arrow function.
More SnippetOptions properties, defined FormsOptions under GhostOptions.
Added and modified tests.
* Update index.d.ts
add proxyOption.proxyReq
* Update index.d.ts
proxyRes and proxyReq can be Function or Function[]
* Update index.d.ts
* Update browser-sync-tests.ts
add test for proxyRes & proxyReq
* Update browser-sync-tests.ts
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.