Skip to content

Commit

Permalink
feat: 🎸 Allow return undefined,but not cache data
Browse files Browse the repository at this point in the history
  • Loading branch information
haozi committed Mar 15, 2024
1 parent ddad27d commit 97f9d26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idmp",
"version": "1.15.3",
"version": "1.15.4",
"keywords": [
"deduplicate network requests",
"idempotent function",
Expand Down
2 changes: 1 addition & 1 deletion plugins/browser-storage/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const storageIdmpWrap = (
const storage = initStorage(storageType)
const newIdmp = <T>(
globalKey: string,
promiseFunc: IdmpPromise<NonVoid<T>>,
promiseFunc: IdmpPromise<T>,
options?: IdmpOptions,
) => {
const finalOptions = getOptions(options)
Expand Down
2 changes: 1 addition & 1 deletion plugins/node-fs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type NonVoid<T> = T extends void ? never : T
const fsIdmpWrap = (_idmp: Idmp, namespace = '') => {
const newIdmp = <T>(
globalKey: string,
promiseFunc: IdmpPromise<NonVoid<T>>,
promiseFunc: IdmpPromise<T>,
options?: IdmpOptions,
) => {
globalKey = `${namespace}_${globalKey}`
Expand Down

0 comments on commit 97f9d26

Please sign in to comment.