Commit Graph
52671 Commits
Author SHA1 Message Date
Vincent c25af097a1 Add types for @storybook/addon-viewport 2018-12-13 15:25:30 +01:00
Jessica Franco c59c711d65 Add 'null' to the type of React.Ref, fixes React.forwardRef (#30510)
* Refs can be 'null' too (they default to that)

* Correct $ExpectType assertion
2018-11-14 06:50:25 +00:00
FishOrBear a8ef194960 Update Box3 (#30456)
ref: https://github.com/mrdoob/three.js/blob/dev/src/math/Box3.js
2018-11-13 17:52:27 -08:00
Spencer Elliott 5f379c1b30 Allow any key/value on __NEXT_DATA__ (#30389) 2018-11-13 17:07:16 -08:00
Andy 0f105ddc5e 'zipkin' dependers need ts2.3+ (#30508) 2018-11-13 16:59:06 -08:00
Joachim Blaafjell Holwech 33c7825107 Added a 'responsive' argument for Config in Plotly.js (#30497)
* Added responsive type in Config

* Fixed tabs
2018-11-13 16:38:24 -08:00
Alexey Immoreev 0d49c9a4c6 Fix RefForwardingComponent argument type. (#30373) 2018-11-13 22:55:17 +00:00
Marius 31fc92ecd3 Add missing definitions to tus-js-client (#30384) 2018-11-13 14:39:28 -08:00
Elizabeth Samuel 305cb040cd office-js: Clarify description of ItemChanged (#30387)
* office-js: Clarify description of ItemChanged

* update based on feedback
2018-11-13 13:31:36 -08:00
Resi Respati 96861dff00 [screeps] Release 2.5.2 (#30399) 2018-11-13 13:30:13 -08:00
Nikolaj Kappler 397cc548c9 Exporting QueryReturn interfaces and some other interfaces. (#30405)
It makes no sense not to export them.

workstream:
2018-11-13 12:45:56 -08:00
Alex Jerabek d1b0ac675b Removing newly unnecessary escape characters (#30414) 2018-11-13 11:17:13 -08:00
Gerhard Stöbich 7b4f51a2d9 node: Update http2 types for node 10 (#30425) 2018-11-13 11:10:07 -08:00
Mauri Edo 8745a252e8 refine swagger2 parameter types (#30452) 2018-11-13 10:59:30 -08:00
Jessica Franco 5c49d4ddc6 Reimplement styled-components with support for .withComponent, type-safe ref, and as (#30467)
* 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
2018-11-13 16:57:37 +00:00
Eloy Durán 52e810e694 Merge pull request #30469 from kimak/patch-1
[react-native] export CompositeAnimation
2018-11-13 13:12:48 +01:00
Pine Mizune 25c1536264 [webpack] Fix webpack types: use anymatch.Matcher for watchOptions.ignored (#30480)
* Fix webpack types

* Fix lint error
2018-11-13 09:00:20 +00:00
Igor Golovin c3485127f0 [meteor-astronomy] Improve Class typing. (#30418) 2018-11-12 18:47:17 -08:00
Andy Hanson 294290a41b Increment mobx-cookie version to avoid publish conflict 2018-11-12 16:21:49 -08:00
Ron Buckton 5c9bd886f8 Merge pull request #30472 from DefinitelyTyped/nodeRepl
[node] Improves node 'repl' types
2018-11-12 15:49:56 -08:00
Ron Buckton 91d6c51ece Merge pull request #30476 from DefinitelyTyped/noPackageLock
Adds .npmrc to disable package-lock generation/validation
2018-11-12 15:45:12 -08:00
Ron Buckton 74f27a82cb Adds .npmrc to disable package-lock generation/validation 2018-11-12 15:17:06 -08:00
Ron Buckton d6682eac8e Improves node 'repl' types 2018-11-12 14:54:45 -08:00
Daniel Rosenwasser 867913d396 Merge pull request #29909 from xtrimsystems/master
Package: Johnny-five - Added objects MotorPins and Motors
2018-11-12 10:58:54 -08:00
NullMDR bfc7007118 [react-router-config] Fix error when "strictFunctionTypes" is on (#30460) 2018-11-12 18:16:27 +00:00
Mickael Dumand 9e503beb07 [react-native] export CompositeAnimation 2018-11-12 15:45:47 +01:00
xtrimsystems a83efae9ca Removed overloads and corrected type for parameter in the Motor and Motors constructors 2018-11-11 13:15:21 +01:00
Christophe Hurpeau 7e0a27458d react: improve Children.map when children is a known array (#30445)
Thanks!
2018-11-11 10:53:51 +00:00
Eloy Durán 7b95fc3d18 Merge pull request #30434 from orta/styled-comments
styled-system: Adds JSDocs comments to properties exposed to clients
2018-11-10 16:15:41 +01:00
Orta Therox cb0bcaf196 Adds JSDocs comments to styled-system properties 2018-11-10 09:41:24 -05:00
Rhys Powell ab11f1b21b Rename React's SFC to 'FunctionalComponent' (#30364)
* renamed SFC to FunctionComponent

* more informative deprecation notice

* add FC as an alias for FunctionComponent

* remove use of deprecated APIs

Revert "remove use of deprecated APIs"

This reverts commit 6bdf2ed88a2ba758060c75720c4fd3960350d706.

remove use of deprecated APIs without reformatting

* add tests to ensure legacy aliases continue working
2018-11-10 07:37:24 +00:00
Andy d6d47aadde business-rules-engine: Remove duplicate Validation namespace (#30323) 2018-11-09 14:26:29 -08:00
Gerhard Stöbich 23568c0bd7 [node] add crypto.generateKeyPair (#30346) 2018-11-09 14:26:21 -08: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