Commit Graph

13 Commits

Author SHA1 Message Date
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