Commit Graph

7 Commits

Author SHA1 Message Date
Kiyo Ichikawa
c4493fb3a2 Adding cleanup and reset methods to type definition to help out with https://github.com/DefinitelyTyped/DefinitelyTyped/issues/26417.
Also, cleanup and adding some other missing props/methods.
2018-06-12 11:55:07 -04:00
Kiyotoshi Ichikawa
55194a76e4 Updated types and appended some.
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.
2018-04-25 15:43:30 -04:00
Kiyotoshi Ichikawa
34026b93c0 [browser-sync] Type definition for Option type is missing many valid properties.
Also appending tests to cover newly added properties/interfaces.
2018-04-05 13:03:08 -04:00
Andy
2a9d2f8d59
Convert more "import *" to "import =" (#23446) 2018-02-05 18:27:31 -08:00
Clément P
6366b6c58a Update DefinitelyTyped (#20318)
* 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
2017-10-16 10:54:30 -07:00
Nathan Shively-Sanders
4874667de9 Fix primitive weak type errors
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.
2017-06-15 11:46:46 -07:00
Andy Hanson
354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00