web-background 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/background.d.ts +2 -4
- package/package.json +1 -1
package/dist/background.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
type Result<Payload, ReturnValue> = Payload extends never ? ReturnFn<ReturnValue> : ReturnFnWithPayload<Payload, ReturnValue>;
|
|
4
|
-
export declare function background<Payload = never, ReturnValue = void>(fn: (payload: Payload) => ReturnValue): Result<Payload, ReturnValue>;
|
|
1
|
+
type Result<Payload, ReturnValue> = Payload extends void ? () => ReturnValue : (payload: Payload) => ReturnValue;
|
|
2
|
+
export declare function background<Payload = void, ReturnValue = void>(fn: (payload: Payload) => ReturnValue): Result<Payload, ReturnValue>;
|
|
5
3
|
export {};
|