diff --git a/package.json b/package.json index b82ae6b..f4b9350 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "idmp", - "version": "1.15.3", + "version": "1.15.4", "keywords": [ "deduplicate network requests", "idempotent function", diff --git a/plugins/browser-storage/src/index.ts b/plugins/browser-storage/src/index.ts index 19cff5e..d211649 100644 --- a/plugins/browser-storage/src/index.ts +++ b/plugins/browser-storage/src/index.ts @@ -68,7 +68,7 @@ const storageIdmpWrap = ( const storage = initStorage(storageType) const newIdmp = ( globalKey: string, - promiseFunc: IdmpPromise>, + promiseFunc: IdmpPromise, options?: IdmpOptions, ) => { const finalOptions = getOptions(options) diff --git a/plugins/node-fs/src/index.ts b/plugins/node-fs/src/index.ts index ecaf4e0..cb76d37 100644 --- a/plugins/node-fs/src/index.ts +++ b/plugins/node-fs/src/index.ts @@ -53,7 +53,7 @@ type NonVoid = T extends void ? never : T const fsIdmpWrap = (_idmp: Idmp, namespace = '') => { const newIdmp = ( globalKey: string, - promiseFunc: IdmpPromise>, + promiseFunc: IdmpPromise, options?: IdmpOptions, ) => { globalKey = `${namespace}_${globalKey}`