Commit Graph

23 Commits

Author SHA1 Message Date
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Forbes Lindesay
8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Brice BERNARD
beb3ffadc6 Make query param less restrictive 2017-12-02 09:09:45 +01:00
Brice BERNARD
5ec9c9cb59 Remover .prettierrc file 2017-12-01 15:21:17 +01:00
Brice BERNARD
fb0050d3b1 Add my name to index.d.ts 2017-12-01 11:18:38 +01:00
Brice BERNARD
98d2bc9bb3 Update query param typing 2017-12-01 11:10:02 +01:00
Brice BERNARD
c7565e2d3c Coding style with prettier 2017-12-01 11:07:03 +01:00
Nathan Shively-Sanders
d60cf71751
Merge pull request #21458 from keplersj/next-js-with-router-hoc
Add withRouter HOC to next.js typedef
2017-11-17 16:16:04 -08:00
Kepler Sticka-Jones
2e6ef3f6a4
Add withRouter HOC to next.js typedef 2017-11-12 12:15:37 -07:00
Björn Tegelund
25af4237d2 Add passHref to Link (#20745) 2017-10-20 08:28:27 -07:00
mattywong
68a737fd80 [@types/next] Update Router.push() method to include UrlLike type (#20671)
* [@types/next] Update Router.push() method to include UrlLike type

Allow a valid UrlLike object instead of only a string type e.g
```
    Router.push({
      pathname: '/pathname',
      query: {
        prop1: '',
        prop2: '',
      },
    });
```
https://github.com/zeit/next.js/#with-url-object-1

* Update router.d.ts
2017-10-19 08:04:18 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Andy
a45998b19c next: Convert to external modules (#20046) 2017-09-26 11:15:49 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Andy
0f8472649f next: Make types accessible from outside (#18416) 2017-07-28 12:42:18 -07:00
Drew Hays
0429e70ac5 Fix a few next.js type issues (#18262)
- Some of the `render` parameters should've been made optional.
- The export style of the `'next'` module wasn't correct.
- Added some missing static methods to `Head`
- Some readonly properties of `Router` can be `undefined`.

Note that this also means that `'next'` technically needs to be imported
like `import next = require('next');`
2017-07-24 10:32:29 -07:00
Drew Hays
001235c776 clean up imports 2017-07-06 08:39:19 -07:00
Drew Hays
abf3f82b72 Use native React.ComponentType definition 2017-07-06 07:36:22 -07:00
Drew Hays
e97722eb0e fix "expect" in tslint 2017-07-05 12:30:20 -07:00
Drew Hays
f7bf798553 passes tests now 2017-07-05 11:43:50 -07:00
Drew Hays
d12e78563c follow pull request template 2017-07-05 11:28:43 -07:00
Drew Hays
205aa683dc Add types for next.js 2017-07-05 11:10:45 -07:00