Commit Graph
52640 Commits
Author SHA1 Message Date
Fellipe Chagas dabc2bf03a Adds JSDocs to the new NavigationLeafRoute params 2018-11-22 18:41:13 -02:00
Fellipe Chagas eea8aaf433 Adjusts compilation errors 2018-11-09 15:58:46 -02:00
Fellipe Chagas 8f2e78835f Improves react-navigation typings 2018-11-09 15:19:11 -02:00
Gerhard Stöbich 766a66b46b [node] Add missing console constructor variants (#30359)
* [node] Add missing console constructor variants

* fix lint
2018-11-09 08:49:53 -08:00
Jessica Franco 9039892f8e Add more of the new features added in React 16.6 (#30054)
* Add definitions for React.memo

* Add missing semicolons

* Give a better name to the second argument to React.memo

* Fix test to reflect correct usage of React.memo's second argument

* Fix no-unnecessary-qualifier lints

* Update other special components to be SpecialSFC

* Ensure ordinary functions aren't assignable to SpecialSFC

* createElement was resolving P to "{} | null" in some tests; add extends to prevent that

* Fix the props of Fragment and StrictMode

* Add tests for SpecialSFC assignability

* Add scary doc comment to SpecialSFC's call signature

Hopefully this trips tslint's deprecation rule.

* Rename SpecialSFC to ExoticComponent

* Add overload to React.memo to make it more ergonomic and avoid implicit any

* Disable test that requires TS 3.1

* Add support for displayName in the exotic components that support it

* Tone down the call signature's doc comment

* Correct $ExpectType assertion

* Try to implement LibraryManagedAttributes for the ExoticComponents that should support them

This doesn't actually work because it seems only class components get them checked?

* Add type definitions for new React 16.6 features

This also attempts to add support for LibraryManagedAttributes to the ExoticComponents.

* The fallback prop is required by Suspense

* Declare legacy context on tests that use legacy context
2018-11-09 06:35:23 +00:00
Jessica Franco a161857494 Add type definitions for the proposed React Hooks API (#30057)
* Add types for the proposed Hooks API

* Add missing parameter

* Add a comment to SetStateAction

* A context's Consumer is also a valid argument to useContext

* Added tests for React hooks.

* Better names, correct types, add a usage note to useMemo

* Add some crazy test that uses every hook

* Fix tests not passing in TS < 3.1

* Fix the factory in useImperativeMethods affecting the T parameter

Adds a second type parameter to prevent TypeScript from just refining T
to {} if the result of the callback is a supertype of the ref's type.

* Add a convenience overload for useRef that are initialized with null

* Add another TS 3.0 TODO comment

* Return immutable ref object from useRef<T>(T|null) to prevent misuse

If you need the ref to be mutable just pass <T|null> as the generic argument.

* Update comment about EffectCallback
2018-11-09 05:53:49 +00:00
Armando Aguirre 84d66aa0df Merge pull request #30383 from denisname/ckeditor5-utils
ckeditor5-utils: add new definition
2018-11-08 14:49:07 -08:00
denis 164ce732e4 Remove any-union 2018-11-08 23:29:13 +01:00
Armando Aguirre 2d32daf099 Merge pull request #30247 from spacejack/gm-drawpolygon
[gm] Fix signatures for drawPolygon, drawPolyline, drawBezier
2018-11-08 14:12:21 -08:00
spacejack a58f5728f5 Fix array style to pass linting 2018-11-08 17:08:03 -05:00
Daniel Rosenwasser adc7a52ec4 Merge pull request #29931 from janesser/master
@types/vuelidate
2018-11-08 13:44:02 -08:00
Armando Aguirre 2cf191e318 Merge pull request #30250 from olshansky/feat/payer_info-type
[@types/paypal-rest-sdk] add payer_info type
2018-11-08 13:37:52 -08:00
Armando Aguirre 72bca79ee3 Merge pull request #30243 from danielpa9708/danielpa9708-patch-1
[prompts] infer answers types
2018-11-08 13:28:45 -08:00
spacejack ac10de9070 Use tuples instead of arrays 2018-11-08 15:52:56 -05:00
Jessica Franco 7c28be5245 Fix packages depending on React so React's tests pass (#30331)
* Fix tests of packages that depend on react

* Hack to pass next's tests in TS@next

* Remove dummy type added to force tests

* Revert "Hack to pass next's tests in TS@next"

This reverts commit 01cc013fd42ec395ac63048e9ff865e23a437014.

* Workaround for TS@3.1 error that is not an error in TS@next

* Revert redux-form changes

* Fix redux-form error like reactstrap was fixed

It's the same problem with inference, and avoids breaking more things.

* Bump TS version for redux-form as it's needed for tests to pass
2018-11-08 12:44:16 -08:00
jan@pidgin c1b9499626 @types/vuelidate 2018-11-08 20:34:47 +01:00
Armando Aguirre 277c59f0c8 Merge pull request #30370 from overflowapp/master
Add type definition flowdoc
2018-11-08 11:29:57 -08:00
Armando Aguirre 541a03d587 Merge pull request #30376 from pengcao1/instabug-reactnative
add @types/instabug-reactnative support
2018-11-08 11:22:03 -08:00
Andy c47ee9bf27 es6-shim: Disable fewer lint rules (#30386) 2018-11-08 11:16:46 -08:00
Daniel Rosenwasser 19383e1250 Merge pull request #30023 from davecardwell/browserslist
[browserslist] Add initial types for browserslist
2018-11-08 11:01:07 -08:00
Armando Aguirre 427e697c42 Merge pull request #30330 from Devilsparta/patch-1
Update index.d.ts
2018-11-08 10:43:23 -08:00
Armando Aguirre c6e5b27c78 Merge pull request #30326 from jemerald/jspdf
Package: jsPDF - corrected function signature for jsPDF.addPage
2018-11-08 10:42:39 -08:00
Armando Aguirre 58c395f105 Merge pull request #30336 from xcatliu/add-typings-for-looks-same
Add typings for looks-same
2018-11-08 10:37:00 -08:00
Armando Aguirre 2f401112d3 Merge pull request #30071 from MeruFM/master
Opossum - More functionality
2018-11-08 10:30:22 -08:00
Dave Cardwell 4bcadac469 [browserslist] Switch to export = 2018-11-08 12:55:42 -05:00
denis 091d52d9d2 any-union
Forget to put back :/
2018-11-08 18:09:24 +01:00
Pierre de la Martinière df37b63ca9 [@types/next] Fix getInitialProps typings for the _error page (#30051)
* Fix getInitialProps typings for the _error page

* Optional Promise for _error's getInitialProps
2018-11-08 08:46:59 -08:00
Peng.Cao fed4b25f1b add @types/instabug-reactnative support 2018-11-08 22:17:52 +08:00
Stefan Mansson 8739c16523 Add flowdoc type definitions 2018-11-08 11:44:35 +02:00
xcatliu b9311a23e3 Update looks-same import syntax 2018-11-08 11:03:41 +08:00
Armando Aguirre 26d2add0db Merge pull request #30147 from bcstodds/patch-1
TargetLocator.frame - Should accept null type.
2018-11-07 16:36:00 -08:00
Armando Aguirre f1c065090a Merge pull request #30227 from georgeevans1995/patch-1
@types/react-dates Add openDirection on single date range picker
2018-11-07 16:09:44 -08:00
Armando Aguirre 9970c8deae Merge pull request #30217 from maxbeatty/dotenv-v6
[dotenv] Update types for v6.1.0
2018-11-07 15:58:29 -08:00
Armando Aguirre e4069084a3 Merge pull request #30328 from gatimus/add-twilio-common
add twilio-common
2018-11-07 15:46:49 -08:00
Armando Aguirre 37cc01fb9f Merge pull request #30340 from guoshencheng/react-blessed
add typing for react-blessed
2018-11-07 15:35:52 -08:00
Armando Aguirre a666454c0e Merge pull request #30345 from djcsdy/setasap
Add type definitions for setasap
2018-11-07 15:32:59 -08:00
Armando Aguirre 8139544d24 Merge pull request #30245 from trodi/patch-angular-toastr
angular-toastr: Add extraData property
2018-11-07 15:29:02 -08:00
Armando Aguirre 32a938cb1f Merge pull request #30351 from stackbuilders/openpgp-fix
Update openpgp type definitions to support async functions
2018-11-07 15:27:31 -08:00
Armando Aguirre 966b1f20c2 Merge pull request #30343 from CameronDiver/fix-dockerode-typo
dockerode: Fix typo in dockerode DeviceMapping interface
2018-11-07 15:26:15 -08:00
Armando Aguirre 70c1fe819a Merge pull request #30338 from tingwai-to/master
[ioredis] Add types for Redis Streams commands
2018-11-07 15:25:38 -08:00
Armando Aguirre 5cb71998cf Merge pull request #30005 from vkrol/patch-1
[webpack] Configuration.performance option can be false
2018-11-07 15:24:44 -08:00
Armando Aguirre c66b68d99f Merge pull request #30300 from gricey432/master
is: Update environment functions
2018-11-07 15:22:53 -08:00
Armando Aguirre 57d024a346 Merge pull request #30272 from nkappler/codemirror-comment
[CodeMirror] add type defs for comment addon
2018-11-07 15:21:49 -08:00
Armando Aguirre ee41fdb64a Merge pull request #30203 from licui3936/task/RUN_4647_DefinitelyTyped_v1_to_v2
Update OpenFin API to v37 and moved some shapes from APIv1 to APIv2
2018-11-07 15:20:05 -08:00
Armando Aguirre f086bfc585 Merge pull request #30327 from SimonSchick/feat/puppeteer-10.1
feat(puppeteer): update for 1.10
2018-11-07 15:03:00 -08:00
Armando Aguirre f3badbc502 Merge pull request #30357 from JuanJoseGonGi/update-critters
Update critters
2018-11-07 15:01:25 -08:00
Troy McKinnon b6fed0fa4b Add angular-toastr extraData 2018-11-07 16:06:38 -06:00
JuanJoseGonGi 06f6b1d872 Fixed version 2018-11-07 14:27:29 -05:00
JuanJoseGonGi 5b60785e0e Updated completely 2018-11-07 14:19:44 -05:00
johan13 a58db39980 Update the signature of fsPromises.mkdir (#30195)
Add support for passing an object as the second argument to fsPromises.mkdir.
This commit also updates the name and doc for the same argument to fs.mkdir.
2018-11-07 08:57:58 -08:00