* fixed typedef for toggleComment
there is a mistake in the documenation.
(See https://github.com/codemirror/CodeMirror/issues/5654)
This is why this mistake in the type defs slipped through.
workstream:
* fixed corresponding test.
workstream:
* Fix ObjectAndType interface: `types` -> `type`
* Fix slate tests: use SchemaProperties
The `Schema` class no longer exists, so `Schema.create` would not work.
For example, `expect([1, 2, 3]).to.equal([1, 2, 3])` previously would
give the compilation error:
> Argument of type 'number[]' is not assignable to parameter of type 'number'.
Prior to this commit `redirect()` hook was mistakenly
typed and documented the same way as `refresh()`.
It's now fixed for v2 and v3 now.
While v3 is provided with a positive and a negative test
cases, v2 is only provided with a positive one.
This is because v2 uses typescript of version 2.4 which is
not able to catch the failing test case.
* Add back context; add more helper context types and documentation
* Fix the handling of ref to properly exclude string refs where not supported
* Fix erroneous tests that got caught by the better Ref type
* Augment ComponentProps to support JSX.IntrinsicElements
* Add tests, doc comments for ComponentProps*
* Add self to Definitions by
* Add TODO comment
* Add comments about the "'ref' extends keyof P" checks
* Fix the handling of ref and props when using withComponent in styled-components
* Swap nesting order of mapped types to fix missing $ExpectErrors
* Comment out test that fails in TS@3.0
* Hack to deal with the tests not failing when they should
* Rewrite styled-components
* Bump version
* Bump minimum TypeScript version
* Update types of @rebass/grid (depends on styled-components)
* Update styled-react-modal types to 1.1 (also styled-components related)
* Reformat styled-components's index.d.ts
Currently lib "dom" is required for compilation.
However, including "dom" in lib can cause some opaque bugs on a server.
For example, the TS compiler won't complain when using `fetch` without something like `import fetch from "node-fetch"` or using `URL` without `import { URL } from "url"`.