Skip to content

Commit

Permalink
rpc: fixup WeakRef typing
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 1, 2023
1 parent c1f0281 commit 694c195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ function compileFunction(code: string, params?: ReadonlyArray<string>, options?:
return eval(f);
}

declare class WeakRef {
target: any;
declare class WeakRef<T> {
target: T;
constructor(target: any);
deref(): any;
deref(): T;
}

try {
Expand Down

0 comments on commit 694c195

Please sign in to comment.