@koine/next 2.0.0-beta.22 → 2.0.0-beta.23

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 +40 -0
  2. package/package.json +4 -4
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Next Pages router utility type
3
+ */
4
+ declare type PageDataStaticPaths<
5
+ P extends import("querystring").ParsedUrlQuery,
6
+ > = import("next").GetStaticPaths<P | never>;
7
+
8
+ /**
9
+ * Next Pages router utility type
10
+ */
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ declare type PageDataStatic<P extends { [key: string]: any }> =
13
+ import("next").GetStaticProps<P, import("querystring").ParsedUrlQuery>;
14
+
15
+ /**
16
+ * Next Pages router utility type
17
+ */
18
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
+ declare type PageDataServer<P extends { [key: string]: any }> =
20
+ import("next").GetServerSideProps<P, import("querystring").ParsedUrlQuery>;
21
+
22
+ /**
23
+ * Workaround to re-create the type `RouteProperties` that is not exported by
24
+ * `next.js`
25
+ */
26
+ declare type NextRouteProperties = Parameters<
27
+ import("next/router").Router["getRouteInfo"]
28
+ >[0]["routeProps"];
29
+
30
+ /**
31
+ * Extend NodeJS `process.env` with variables used by @koine
32
+ */
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
+ }
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.22",
6
- "@koine/react": "2.0.0-beta.22",
7
- "@koine/utils": "2.0.0-beta.22"
5
+ "@koine/browser": "2.0.0-beta.23",
6
+ "@koine/react": "2.0.0-beta.23",
7
+ "@koine/utils": "2.0.0-beta.23"
8
8
  },
9
9
  "peerDependenciesMeta": {
10
10
  "@hookform/resolvers": {
@@ -181,5 +181,5 @@
181
181
  }
182
182
  },
183
183
  "peerDependencies": {},
184
- "version": "2.0.0-beta.22"
184
+ "version": "2.0.0-beta.23"
185
185
  }