Skip to content

Commit

Permalink
add [Symbol.dispose]
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeOShannessy committed Aug 28, 2024
1 parent e94784c commit aa3eb94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@smoke-cloud/smv-rpc",
"version": "0.1.6",
"version": "0.1.7",
"license": "GPL",
"exports": "./mod.ts",
"lint": {
Expand Down
3 changes: 3 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export class Smokeview {
const rpc = await startSmvRpc(smvPath);
return new Smokeview(rpc);
}
[Symbol.dispose](): void {
this.exit();
}
async setClipping(
params: {
mode?: 2;
Expand Down

0 comments on commit aa3eb94

Please sign in to comment.