Skip to content

Commit f9cc2ac

Browse files
authored
Update readme to mark Snapshot.wrap as static (tc39#74)
1 parent 733cb4f commit f9cc2ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ namespace AsyncContext {
164164
class Variable<T> {
165165
constructor(options: AsyncVariableOptions<T>);
166166
get name(): string;
167-
run<R>(value: T, fn: (...args: any[])=> R, ...args: any[]): R;
168167
get(): T | undefined;
168+
run<R>(value: T, fn: (...args: any[])=> R, ...args: any[]): R;
169169
}
170170
interface AsyncVariableOptions<T> {
171171
name?: string;
@@ -175,7 +175,7 @@ namespace AsyncContext {
175175
class Snapshot {
176176
constructor();
177177
run<R>(fn: (...args: any[]) => R, ...args: any[]): R;
178-
wrap<T, R>(fn: (this: T, ...args: any[]) => R): (this: T, ...args: any[]) => R;
178+
static wrap<T, R>(fn: (this: T, ...args: any[]) => R): (this: T, ...args: any[]) => R;
179179
}
180180
}
181181
```

0 commit comments

Comments
 (0)