@koine/next 2.0.0-beta.52 → 2.0.0-beta.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/typings.d.ts +48 -0
package/package.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"name": "@koine/next",
|
|
3
3
|
"sideEffects": false,
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@koine/browser": "2.0.0-beta.
|
|
6
|
-
"@koine/react": "2.0.0-beta.
|
|
7
|
-
"@koine/utils": "2.0.0-beta.
|
|
8
|
-
"@koine/i18n": "2.0.0-beta.
|
|
5
|
+
"@koine/browser": "2.0.0-beta.54",
|
|
6
|
+
"@koine/react": "2.0.0-beta.54",
|
|
7
|
+
"@koine/utils": "2.0.0-beta.54",
|
|
8
|
+
"@koine/i18n": "2.0.0-beta.54"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"next": "^14.0.4",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
},
|
|
47
47
|
"module": "./index.esm.js",
|
|
48
48
|
"main": "./index.cjs.js",
|
|
49
|
-
"version": "2.0.0-beta.
|
|
49
|
+
"version": "2.0.0-beta.54"
|
|
50
50
|
}
|
package/typings.d.ts
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [`next.js` pages router](https://nextjs.org/docs/pages) utility type
|
|
3
|
+
*/
|
|
4
|
+
type NextGetStaticPathsResult<Params extends { [key: string]: any }> = Omit<
|
|
5
|
+
import("next").GetStaticPathsResult,
|
|
6
|
+
"paths"
|
|
7
|
+
> & {
|
|
8
|
+
paths: Array<string | { params: Params; locale?: string }>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* [`next.js` pages router](https://nextjs.org/docs/pages) utility type
|
|
13
|
+
*/
|
|
14
|
+
declare type PageDataStaticPaths<Params extends { [key: string]: any }> = (
|
|
15
|
+
context: import("next").GetStaticPathsContext,
|
|
16
|
+
) =>
|
|
17
|
+
| Promise<NextGetStaticPathsResult<Params>>
|
|
18
|
+
| NextGetStaticPathsResult<Params>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* [`next.js` pages router](https://nextjs.org/docs/pages) utility type
|
|
22
|
+
*/
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
+
declare type PageDataStatic<P extends { [key: string]: any }> =
|
|
25
|
+
import("next").GetStaticProps<P, import("querystring").ParsedUrlQuery>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* [`next.js` pages router](https://nextjs.org/docs/pages) utility type
|
|
29
|
+
*/
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
|
+
declare type PageDataServer<P extends { [key: string]: any }> =
|
|
32
|
+
import("next").GetServerSideProps<P, import("querystring").ParsedUrlQuery>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Workaround to re-create the type `RouteProperties` that is not exported by
|
|
36
|
+
* `next.js`
|
|
37
|
+
*/
|
|
38
|
+
declare type NextRouteProperties = Parameters<
|
|
39
|
+
import("next/router").Router["getRouteInfo"]
|
|
40
|
+
>[0]["routeProps"];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Extend NodeJS `process.env` with variables used by @koine
|
|
44
|
+
*/
|
|
45
|
+
// declare namespace NodeJS {
|
|
46
|
+
// interface ProcessEnv {
|
|
47
|
+
// }
|
|
48
|
+
// }
|