Skip to content

Commit

Permalink
Update doc and interface
Browse files Browse the repository at this point in the history
  • Loading branch information
HiteshShrestha committed Aug 21, 2024
1 parent c642fa4 commit be02235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AsyncStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import AsyncStoreParams from './AsyncStoreParams';
* Async Store implementation contract.
*/
interface AsyncStore {
initialize: (callback: (err?: any) => void, params?: AsyncStoreParams) => void;
initialize: (callback: (err?: any) => void, params?: AsyncStoreParams) => any;
set: (properties: any) => void;
get: (key: string) => any;
getAll: () => any;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function initializeFastifyPlugin(adapter: AsyncStoreAdapter = AsyncStoreA
* Initialize the async store based on the adapter provided.
*
* @param {AsyncStoreAdapter} [adapter=AsyncStoreAdapter.DOMAIN]
* @returns {(params: AsyncStoreParams) => any}
* @returns {(callback: (err?: any) => void, params?: AsyncStoreParams) => any }
*/
export function initialize(adapter: AsyncStoreAdapter = AsyncStoreAdapter.DOMAIN) {
if (isInitialized()) {
Expand Down

0 comments on commit be02235

Please sign in to comment.