server: fix minor type issues

This commit is contained in:
tiago
2025-09-23 17:05:58 +01:00
parent 7e7ad795f0
commit d6c9d40fbf
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ type ChallengeStorage = {
/**
* - Delete expired challenge tokens
*/
deleteExpired: () => Promise<string[]>;
deleteExpired: () => Promise<void>;
};
type TokenStorage = {
/**
@@ -211,7 +211,7 @@ type TokenStorage = {
/**
* - Delete expired token keys
*/
deleteExpired: () => Promise<string[]>;
deleteExpired: () => Promise<void>;
};
type StorageHooks = {
/**
+2 -2
View File
@@ -52,7 +52,7 @@
* @property {function(string, ChallengeData): Promise<void>} store - Store challenge data
* @property {function(string): Promise<ChallengeData|null>} read - Retrieve challenge data
* @property {function(string): Promise<void>} delete - Delete challenge data
* @property {function(): Promise<string[]>} deleteExpired - Delete expired challenge tokens
* @property {function(): Promise<void>} deleteExpired - Delete expired challenge tokens
*/
/**
@@ -60,7 +60,7 @@
* @property {function(string, number): Promise<void>} store - Store token with expiration
* @property {function(string): Promise<number|null>} get - Retrieve token expiration
* @property {function(string): Promise<void>} delete - Delete token
* @property {function(): Promise<string[]>} deleteExpired - Delete expired token keys
* @property {function(): Promise<void>} deleteExpired - Delete expired token keys
*/
/**
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@cap.js/server",
"version": "4.0.0",
"version": "4.0.2",
"author": "Tiago",
"repository": {
"type": "git",
@@ -54,7 +54,7 @@
"license": "Apache-2.0",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"publish": "bun publish --access public"
"publish": "bunx tsc && bun publish --access public"
},
"type": "commonjs",
"dependencies": {