Skip to content

Commit be02235

Browse files
Update doc and interface
1 parent c642fa4 commit be02235

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AsyncStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import AsyncStoreParams from './AsyncStoreParams';
44
* Async Store implementation contract.
55
*/
66
interface AsyncStore {
7-
initialize: (callback: (err?: any) => void, params?: AsyncStoreParams) => void;
7+
initialize: (callback: (err?: any) => void, params?: AsyncStoreParams) => any;
88
set: (properties: any) => void;
99
get: (key: string) => any;
1010
getAll: () => any;

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function initializeFastifyPlugin(adapter: AsyncStoreAdapter = AsyncStoreA
9999
* Initialize the async store based on the adapter provided.
100100
*
101101
* @param {AsyncStoreAdapter} [adapter=AsyncStoreAdapter.DOMAIN]
102-
* @returns {(params: AsyncStoreParams) => any}
102+
* @returns {(callback: (err?: any) => void, params?: AsyncStoreParams) => any }
103103
*/
104104
export function initialize(adapter: AsyncStoreAdapter = AsyncStoreAdapter.DOMAIN) {
105105
if (isInitialized()) {

0 commit comments

Comments
 (0)