@koine/api 1.0.13 → 1.0.14
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 +3 -2
- package/typings.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koine/api",
|
|
3
|
-
"version": "1.0.13",
|
|
4
3
|
"sideEffects": false,
|
|
5
4
|
"main": "./node/index.js",
|
|
6
5
|
"typings": "./index.d.ts",
|
|
7
6
|
"dependencies": {
|
|
7
|
+
"@koine/utils": "1.0.14",
|
|
8
8
|
"next": "^12.1.6",
|
|
9
9
|
"swr": "^2.0.0-beta.3",
|
|
10
10
|
"type-fest": "^2.13.0",
|
|
@@ -12,5 +12,6 @@
|
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {},
|
|
14
14
|
"module": "./index.js",
|
|
15
|
-
"types": "./index.d.ts"
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"version": "1.0.14"
|
|
16
17
|
}
|
package/typings.d.ts
CHANGED
|
@@ -119,7 +119,10 @@ declare namespace Koine.Api {
|
|
|
119
119
|
[TMethod in Uppercase<RequestMethod>]?: DataTypes<TMethod>;
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
type EndpointUrl<TEndpoints extends Endpoints> = Extract<
|
|
122
|
+
type EndpointUrl<TEndpoints extends Endpoints> = Extract<
|
|
123
|
+
keyof TEndpoints,
|
|
124
|
+
string
|
|
125
|
+
>;
|
|
123
126
|
|
|
124
127
|
type DataTypes<TMethod extends Uppercase<RequestMethod>> =
|
|
125
128
|
TMethod extends "GET"
|