Skip to content

Commit

Permalink
Update readme to mark Snapshot.wrap as static
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell authored Feb 27, 2024
1 parent 733cb4f commit 5ba4572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ namespace AsyncContext {
class Variable<T> {
constructor(options: AsyncVariableOptions<T>);
get name(): string;
run<R>(value: T, fn: (...args: any[])=> R, ...args: any[]): R;
get(): T | undefined;
run<R>(value: T, fn: (...args: any[])=> R, ...args: any[]): R;
}
interface AsyncVariableOptions<T> {
name?: string;
Expand All @@ -175,7 +175,7 @@ namespace AsyncContext {
class Snapshot {
constructor();
run<R>(fn: (...args: any[]) => R, ...args: any[]): R;
wrap<T, R>(fn: (this: T, ...args: any[]) => R): (this: T, ...args: any[]) => R;
static wrap<T, R>(fn: (this: T, ...args: any[]) => R): (this: T, ...args: any[]) => R;
}
}
```
Expand Down

0 comments on commit 5ba4572

Please sign in to comment.