Skip to content

Commit

Permalink
Allow proxy to return a Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeistrich committed Oct 23, 2023
1 parent b7b18bc commit cbf98e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/observableInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,5 +529,5 @@ export interface ComputedParams<T = any> {
}

export interface ComputedProxyParams<T = any> extends ComputedParams {
proxy: (fn: (key: string, params: ComputedParams<T>) => T) => void;
proxy: (fn: (key: string, params: ComputedParams<T>) => T | Promise<T>) => void;
}

0 comments on commit cbf98e7

Please sign in to comment.