Skip to content

Commit

Permalink
fix: use supported node range for types
Browse files Browse the repository at this point in the history
Using the supported node range for types ensures Puppeteer compiles to the correct types.
  • Loading branch information
jrandolf committed Sep 13, 2023
1 parent 2fb0032 commit a4f0403
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 31 deletions.
42 changes: 13 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -118,7 +118,7 @@
"@types/diff": "5.0.3",
"@types/mime": "3.0.1",
"@types/mocha": "10.0.1",
"@types/node": "20.5.9",
"@types/node": "16.3.0",
"@types/pixelmatch": "5.2.4",
"@types/pngjs": "6.0.1",
"@types/progress": "2.0.5",
Expand Down
1 change: 0 additions & 1 deletion packages/browsers/package.json
Expand Up @@ -106,7 +106,6 @@
"yargs": "17.7.1"
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/yargs": "17.0.22"
}
}
@@ -1,6 +1,26 @@
import 'disposablestack/auto';

declare global {
interface SymbolConstructor {
/**
* A method that is used to release resources held by an object. Called by the semantics of the `using` statement.
*/
readonly dispose: unique symbol;

/**
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the `await using` statement.
*/
readonly asyncDispose: unique symbol;
}

interface Disposable {
[Symbol.dispose](): void;
}

interface AsyncDisposable {
[Symbol.asyncDispose](): PromiseLike<void>;
}

class DisposableStack implements Disposable {
constructor();

Expand Down

0 comments on commit a4f0403

Please sign in to comment.