This reverts commit ec2fbc378c.
Reason: `karma-fixture` is NOT a module. It installs a the global
`fixture` using `karma`'s framework. There is nothing that gets
exported.
Neither `import { fixture } from 'karma-fixture'` nor `import fixture
from `karma-fixture` works at runtime, because e.g. `fixture.load`
will simply be undefined.
It is not only that the import does not work. Additionally, the global
`fixture` is not declared anymore. The reason is, that the introduced
`export` statements had converted the `index.d.ts` from "script" (aka
defines some globals) into "module". From
https://www.typescriptlang.org/docs/handbook/modules.html:
> In TypeScript, just as in ECMAScript 2015, any file containing a
> top-level import or export is considered a module. Conversely, a file
> without any top-level import or export declarations is treated as a
> script whose contents are available in the global scope (and therefore
> to modules as well).
Therefore, once you upgrade from `0.2.3` to `0.2.4`, typescript reports
> 'fixture' refers to a UMD global, but the current file is a module.
> Consider adding an import instead.
But as stated above, an import does not work.
This reverts commit d5e9fe1676.
Mistake in #26161. `karma-fixture` as of today is still `0.2.6`.
The changes of #26161 are not related to a release of `karma-fixture`.
* Fix wrong types for onReady method
In Stripe docs there are examples like `<CardElement onReady={(el) => el.focus()} />`
This PR fixes issue with missing method parameters for `onReady` function.
* fix: use better type for the html element
* fix: updated authors list
* fix: updated test file
* Generics for *format functions
Use object instead of DSVRowAny (TS 2.2)
Remove useless expectError
Remove a duplicate csvParse test
Replace properties year, make, ... tests for an interface test
* Revert changes for DSVRowAny
* [ember] Polyfill: allow assign to take in more than 4 args
* Return type should be object
* Adjust tests in response to modified return type
Co-Authored-By: dorilla <dcmaglasang@gmail.com>
* Change return type back to “any”
In order to facilitate direct property access
* Change return type back to “any”
In order to facilitate direct property access
* 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.
* 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