scott willeke
80d9c48f2d
next-server: makes router optional ( #30190 )
...
* makes router optional as explained in first comment of #24077
* build fixes in dependant next package
* retrigger build to see if "known issue with typescript@next" mentioned in #30190 comments is fixed
* minor change per suggestion on #30190
2018-11-15 14:40:56 -08:00
Spencer Elliott
5f379c1b30
Allow any key/value on __NEXT_DATA__ ( #30389 )
2018-11-13 17:07:16 -08: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
AJ Livingston
67d82a3999
Add @types/next-server / port @types/next lib ( #29724 )
...
* ported next lib to next-server
* lint fixes
* updated exports from next-server
* added maintainers from next to next-server
* removed deprecations from next-server
* added return value `false` to ServerRoute.match
* fixed formatting
2018-10-16 10:13:11 -07:00
João Vieira
05406773b8
Allow styles to be any ReactNode. ( #29639 )
2018-10-11 10:54:24 -07:00
Resi Respati
dab682e6f8
[next] Add support for next/constants ( #29633 )
...
* [next] Add support for `next/constants`
* minor whitespace fix
2018-10-11 10:47:24 -07:00
Charles ⚡
13bb0f2dfd
Update document.d.ts ( #29465 )
...
Document.getInitialProps() is awaitable.
2018-10-05 11:07:47 -07:00
João Vieira
30eeae9a72
Fix incorrect linting error.
2018-09-26 10:06:43 +01:00
João Vieira
3060dbf392
Make App and Document component types similar to base type.
2018-09-26 09:26:56 +01:00
João Vieira
ff11ea68ce
Fix tests.
2018-09-25 14:48:16 +01:00
João Vieira
35893a4d37
Cleanup array and Record types.
2018-09-25 13:47:36 +01:00
João Vieira
43fb400ad7
Update dynamic types and tests.
2018-09-25 13:35:22 +01:00
João Vieira
b9c03395c0
Update to Next.js 7.
2018-09-24 19:20:01 +01:00
João Vieira
0a50c91b2c
Enforce App and Document implementations to match base class.
2018-09-24 15:45:19 +01:00
João Vieira
5be1841543
Add type docs for NextComponentType type.
2018-09-19 17:01:02 +01:00
João Vieira
0f4418007c
Add NextComponentType akin to React.ComponentType.
2018-09-19 16:26:44 +01:00
João Vieira
219510899d
Consistent context query types.
2018-09-17 17:18:33 +01:00
ByungHyun Jung
56eaecc401
Make @types/next Document generic for defining custom props. ( #28429 )
...
Please fill in this template.
- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [ ] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request ).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes ).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).
Select one of these and delete the others:
If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
- [x] Increase the version number in the header if appropriate.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
I'm not familiar with writing these kind of testing code, so I didn't update that. Give me some guidance if necessary. Thanks.
2018-09-13 23:22:54 -07:00
Daniel Rosenwasser
22194b1882
Merge pull request #28330 from joaovieira/next/server-properties
...
@types/next: Add server property types.
2018-08-24 14:49:48 -07:00
João Vieira
02a9dd09b3
Revert to use ServerConfig.
2018-08-23 17:56:39 +01:00
João Vieira
6d300ba234
Add tests.
2018-08-23 17:13:24 +01:00
João Vieira
f56a12fc88
Add server properties.
2018-08-23 16:59:54 +01:00
Kevin Welcher
bdf3eeeae8
Adds query to other cross cutting interfaces
2018-08-13 15:55:05 -04:00
Kevin Welcher
327d5763a6
Adds generic query param to next context as well
2018-08-13 09:57:11 -04:00
Kevin Welcher
dbd0352e7b
Adds tslint ignore rule
2018-08-13 09:52:13 -04:00
Kevin Welcher
b141f33f66
Adds generic Query parameter to next.js's router
2018-08-10 19:05:29 -04:00
Ferdy Budhidharma
6d2fc7181a
feat(react-dependents): update to TS 2.8 (part 1 of 2) ( #27743 )
...
* feat(react-dependents): update to TS 2.8
* exclude react-dom
* fix version mismatches
2018-08-03 21:01:14 +01:00
Resi Respati
d738494b08
[next] recover old router events APIs ( #27695 )
2018-07-30 12:00:41 -07:00
Jake Marsh
401f812db2
Update next definitions for 6.1.1 - router events API ( #27143 )
...
* Update nextjs router events API
* fix tests and update header
* fix header
* handle routeChangeError and update tests
2018-07-23 10:10:40 -07:00
João Vieira
368c31c922
[Next] Add missing props to NextScript component.
2018-06-29 14:54:44 +01:00
Paul van Brenk
42ca1a45c6
Merge pull request #26849 from resir014/feature/next-fix-query-types
...
[next] Fixed query string types, add isServer to context
2018-06-27 10:25:20 -07:00
Resi Respati
12251f6dbb
[next] use Record type for QueryStringMapObject
2018-06-27 08:17:59 +07:00
Resi Respati
6c97d3105a
[next] fixed redundant export declaration
2018-06-27 01:01:03 +07:00
Resi Respati
e90fe42b18
[next] add isServer
2018-06-26 20:54:59 +07:00
Resi Respati
9ceaab4ba5
[next] added QueryStringMapObect type
2018-06-26 20:46:13 +07:00
Jeremy Stucki
31bc8eeac3
Add router prop to AppComponentProps
...
`router` also needs to be set when rendering <App /> manually
(e.g. with Apollo SSR)
2018-06-26 10:16:20 +02:00
Jeremy Stucki
87f0d482eb
Fix wrong router Type in app
2018-06-26 09:57:26 +02:00
Benjamin Lichtman
b6d5c4d82d
Merge pull request #25775 from bensaufley/bs_nextjs_document
...
[next] Elaborate on Document types
2018-06-20 09:18:01 -07:00
Ben Saufley
c2b40c18c1
[next] Update router types
2018-06-15 13:36:18 -04:00
Ben Saufley
008c59014a
Consolidate
2018-06-13 14:54:42 -04:00
Ben Saufley
9a235d9000
[next] Elaborate on Document types
...
Adjust renderPage and Enhancer; add tests
Allows Enhancer to receive a React ComponentType that accepts one set of props and return a ComponentType that accepts a different set of props, the latter including at least url
2018-06-13 14:44:59 -04:00
Resi Respati
512782a734
Revert "[next] query keys only return string"
...
This reverts commit 4a17bfcc0d .
2018-06-12 13:17:18 +07:00
Resi Respati
4a17bfcc0d
[next] query keys only return string
2018-06-12 12:59:47 +07:00
Resi Respati
7b6f4d1243
[next] fix component tests to include grabbing query context
2018-06-12 12:47:47 +07:00
Resi Respati
7492a8c985
[next] address code review
2018-06-12 01:37:08 +07:00
Resi Respati
d34dd2a8cb
Merge remote-tracking branch 'upstream/master' into feature/types-nextjs-6.0.0
2018-06-12 01:31:45 +07:00
Mine Starks
01eb14e7a4
Merge pull request #25167 from scottdj92/master
...
[next] Update SingletonRouter interface with RouterProps for next@5
2018-06-11 11:11:53 -07:00
Scott Jones
4acc2d229c
Adding ImperativeRouter type
2018-06-07 08:13:30 -04:00
krasevych
83fb93d4f8
Add def for setAssetPrefix
...
there is Dynamic assetPrefix: https://github.com/zeit/next.js#dynamic-assetprefix
example: 373661aafa/test/integration/custom-server/server.js
2018-05-19 00:17:43 +03:00
Resi Respati
3ebc1ac0b3
[next] stateless -> class
2018-05-16 22:03:51 +07:00