@koine/next 2.0.0-beta.25 → 2.0.0-beta.26
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/12/typings.d.ts +22 -14
- package/package.json +4 -4
package/12/typings.d.ts
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* [`next.js` pages router](https://nextjs.org/docs/pages) utility type
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
+
};
|
|
7
10
|
|
|
8
11
|
/**
|
|
9
|
-
*
|
|
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
|
|
10
22
|
*/
|
|
11
23
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
24
|
declare type PageDataStatic<P extends { [key: string]: any }> =
|
|
13
25
|
import("next").GetStaticProps<P, import("querystring").ParsedUrlQuery>;
|
|
14
26
|
|
|
15
27
|
/**
|
|
16
|
-
*
|
|
28
|
+
* [`next.js` pages router](https://nextjs.org/docs/pages) utility type
|
|
17
29
|
*/
|
|
18
30
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
31
|
declare type PageDataServer<P extends { [key: string]: any }> =
|
|
@@ -30,11 +42,7 @@ declare type NextRouteProperties = Parameters<
|
|
|
30
42
|
/**
|
|
31
43
|
* Extend NodeJS `process.env` with variables used by @koine
|
|
32
44
|
*/
|
|
33
|
-
declare namespace NodeJS {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
AUTH_ROUTE_REGISTER: string;
|
|
38
|
-
AUTH_ROUTES_SECURED: string;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
45
|
+
// declare namespace NodeJS {
|
|
46
|
+
// interface ProcessEnv {
|
|
47
|
+
// }
|
|
48
|
+
// }
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
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.
|
|
5
|
+
"@koine/browser": "2.0.0-beta.26",
|
|
6
|
+
"@koine/react": "2.0.0-beta.26",
|
|
7
|
+
"@koine/utils": "2.0.0-beta.26"
|
|
8
8
|
},
|
|
9
9
|
"peerDependenciesMeta": {
|
|
10
10
|
"@kuus/yup": {
|
|
@@ -172,5 +172,5 @@
|
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
"peerDependencies": {},
|
|
175
|
-
"version": "2.0.0-beta.
|
|
175
|
+
"version": "2.0.0-beta.26"
|
|
176
176
|
}
|