* [jasmine] Fix unit tests for jasmine.objectContaining to use $ExpectError instead of commments
* [jasmine] Fix type definitions for jasmine.objectContaining when using TypeScript 3.1+
* [react-instantsearch] update to v6
- createIndex & createInstantSearch no longer exist, replaced by the component in -core
- InstantSearch no longer accepts appId & apiKey
- InstantSearch no longer accepts `root` (& neither Index, but that wasn't typed)
- /server API has changed, now exposes directly `findResultsState`
* fix small typo things
* update native tests
* declare newer stuff
* prevent error
* interfaces are required apparently
* Update types/react-instantsearch-core/index.d.ts
* Update types/react-instantsearch-dom/index.d.ts
* fix lint?
* remove failing test
* hmm
* hmm this test is weird but that's ok
* old typescript
* fix: add types to authentication context for keystone v6.0
* fix: add other fields from authentication context data packet
some fields were undefined. I have added these as optional with any for now.
* fix: pass default values with the optional options for executeQuery()
This permits
```
executeQuery(
`query {
_allUsersMeta {
count
}
}`
```
as well as
```
executeQuery(
`query {
_allUsersMeta {
count
}
}`,
{
variables: {
password,
email,
},
}
```
* fix: remove initializer from interface property
* fix: ci error
`A parameter initializer is only allowed in a function or constructor implementation.`
* fix: i am done with semicolons
* Add typing for children of react-document-title
react-document-title uses React.Children.only to get the only child, and raises an error if more than one child is passed.
https://github.com/gaearon/react-document-title/blob/master/index.js#L31
* Add a test case with a child
* Turns out it should be React.ReactChild
Turns out it should be React.ReactChild
* Fix typo
* feat(prettier): add information about defaults
For most commonly used options:
https://prettier.io/docs/en/options.html
Thanks!
* Add missing defaults as per PR comment:
- `proseWrap`
- `useTabs`
Thanks!
- modify core events defintiioin to handle 'this' scope
- test updated for non-arrow syntax usage with events scoped to PNG
https://github.com/lukeapage/pngjs#async-api
Thanks!
This commit removes myself from being notified of changes, as I am no
longer a noteworthy contributor to this project.
I thank you for your time, and am likely to join you again in the
future.
-- Zane.
Co-authored-by: Zane Hannan <ZaneHannanAU@gmail.com>
DOM updates in 3.9 mean that Typescript now knows that
`HTMLBodyElement.ownerDocument` can't actually be null. Previously, a
non-null assertion was needed.
Because the tests have to compile on 3.9 AND older versions, I just
disabled the rule.
* [react] Port ElementRef utility type from Flow
https://flow.org/en/docs/react/types/#toc-react-elementref
* [react] Use least amount of required typing
* [react] Support forwarded refs with ElementRef
* [react] Use correct function component return type
* [react] Add ElementRef test for memoized ref forwarding component
* [react] Add ElementRef test for lazy component
* [react] Match function components with props
* [react] Fix test-case by moving type around
* [react] Fix flaky test-case
* [recharts] Remove deprecated CSS properties
These have been removed from `lib.dom.d.ts`:
https://github.com/microsoft/TypeScript/pull/37464/files#r395692943