@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.
Files changed (2) hide show
  1. package/12/typings.d.ts +22 -14
  2. package/package.json +4 -4
package/12/typings.d.ts CHANGED
@@ -1,19 +1,31 @@
1
1
  /**
2
- * Next Pages router utility type
2
+ * [`next.js` pages router](https://nextjs.org/docs/pages) utility type
3
3
  */
4
- declare type PageDataStaticPaths<
5
- P extends import("querystring").ParsedUrlQuery,
6
- > = import("next").GetStaticPaths<P | never>;
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
- * Next Pages router utility type
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
- * Next Pages router utility type
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
- interface ProcessEnv {
35
- AUTH_ROUTE_LOGIN: string;
36
- AUTH_ROUTE_PROFILE: string;
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.25",
6
- "@koine/react": "2.0.0-beta.25",
7
- "@koine/utils": "2.0.0-beta.25"
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.25"
175
+ "version": "2.0.0-beta.26"
176
176
  }